Ubuntu Servers :: PHP Suddenly Very Slow / What To Do?
Jan 28, 2011
All of my PHP web pages are now loading incredibly slow. I created a simple "Hello World!" script and timed retrieving it from a terminal using wget and it took 3min 9seconds. A wget of the home page of a PHP-based site also took 3min 9seconds. I have a PHP script that I run from the command line that I use to look for malicious FTP attempts and it took - you guessed it - 3min 9seconds. I am running Ubuntu 8.04 LTS and have applied all of the latest updates for that version.
One thing I did notice was a proliferation of apache2 processes. With every request for a page I seem to get 7 or so new apache2 processes.
Shut down speed all of a sudden became slow.. I'm running 10.04 on a dual core 3.2gig cpu with 4 gig ram. Boot up is in seconds and shut down was almost instant. Now shut down takes about 15 seconds. Is there a way to see what is causing ubuntu to hang when shutting down?
I run a set scripts running under cron which make tar backups to an external USB HDD.
Wednesday (7 July) night backup 22GiB took about 15min Thursday (8 July) night backup 22GiB took 5hours 44min :-o
Nothing changed between these runs, the machine wasn't rebooted, the USB device wasn't unmounted and remounted.
This has been a basic speed change - everything prior to 7 July runs at a similar speed and everything since then is dead slow.
I've googled around and come up with things like ... * Make sure the device is mounted async - I believe it is (options: rw,defaults) but it wasn't remounted in between. * Make sure that ehc1_hcd is loaded before uhc1_hcd - the entry in /etc/modprobe.conf looks like it is and anyway there wasn't a reboot between.
I dread to think how long a full backup is going to take so I could definitely do with getting back to the sort of speeds I used to get.
I have a dell dimension 4600. I just recently installed kubuntu 11.04. It was working fine for about an hour or so, and then it suddenly became slow and unresponsive.
I don't think any changes have been made to my laptop, but it suddenly loads Ubuntu extremely slowly. The time it takes to get from the Toshiba boot screen to the Ubuntu Log-in screen takes easily 20x as long.
Has anyone else been experiencing this kind of lag or have any ideas where to begin?
I have a VM setup in VirtualBox of Win XP. This VM has been setup for well over 4 years.
All of a sudden today, the VM started running very slow. I checked the task manager in Windows, nothing eating up PCU or memory there. I then ran htop. Attached is what I saw. There are many repeat processes with different PIDs. Is this normal?
All of a sudden, the startup (time from GRUB to Login Screen) has been quite slow. I recently installed a LAMP server. I've tried disabling httpd and mysql but it didn't seem to have any effect. I've attached my dmesg output below.
A couple of days ago my internet connections suddenly became very slow/intermittant.
I thought the problem was at my DSL provider but after more checking the problem seems to be in Ubuntu/Linux somewhere.
Reason: I can dual boot with windows 7 and have no ptoblem at all. Also I tried a Ubuntu laptop on the same router ethernet port and it also works fine. So its not my hardware or my provider, and its not a general Ubuntu problem either.
There are no error messages in any of the /var/log files and ifconfig looks normal.
It seems to be a DNS problem as it's the initial connection to a host which often times out. If I get a connection, I can e.g. stream an radio station fine.
If I try to e.g. traceroute any host it times out (no reply).
Ubuntu 10.10 is totally up to date as of today.
I'm stuck! How can I troubleshoot this to find the cause?
I've just noticed that unrar is suddenly taking minutes to extract instead of seconds.
I can remember if its recently been updated, but I've uninstalled and reinstalled it and the version is: unrar.x86_64 0:3.7.8-3.fc10
I've found a few Ubuntu posts about it on Google, but in true Ubuntu fashion nobody has any answers!
What's odd is that when I unrar a file from (Nautilus or "unrar x *.rar") it takes say 4mins, then if I do it again it takes 15secs, like as if its caching somewhere.
We do server backups to USB HDD's. Neither of our known good backup drives are being recognized by our 10.04 server, fully updated. Additionally, I plugged in my SanDisk 4GB USB mem stick, and it is not recognized either. I am used to seeing the kernel do some PnP messages in either /var/log/messages or /var/log/syslog and I am not seeing any blips there what so ever of the USB drives being plugged in. Did something happen to USB PnP with some latest update? USB HDD's were being recognized recently, like six weeks ago...
I recently reinstalled my file server (moved from fedora to ubuntu server). Now I cannot mount my nfs share from windows 7, mounting from mac osx works fine. In windows I either keep getting "the semaphore timeout period has expired" or "an unexpected error has occured". Does ubuntu need some special magic to allow windows 7 to mount an nfs share? This is my exports file
Today, the power was suddenly cut off in my house, then my home Ubuntu Server restarted after the power on, but when I use my laptop to view my wesite, the index.html suddenly became blank page, I did clear the firefox cache, doesn't work, still blank, and I changed browser, to seamonkey, the index.html still was blank, so, I am sure that the problem is coused by the server, and then, I put the index.html file to a subdirectory, which under the /var/www/home/index.html, and then I put the address < [url] > ,then,I can view my website the main page index.html.
I am connecting servers using NFS4 the shared directories are on servers running Debian 4 while the one who read from them is Debian 5.0.3. The problem is one of these shared servers suddenly stop responding and you cannot list it from Debian 5 server, also df hang, and the web application that is using it does not respond to requests that use this shared directory since it is blocked. Then the load on the server start to increase until the server cannot respond (over 90). I have found many entries in the syslog that refer to this like:
ma25555 kernel: [1200285.732919] nfs: server 10.xxx.xxx.xxx not responding, still trying Dec 31 08:16:33 ma25555 kernel: [1200289.815378] INFO: task java:9702 blocked for more than 120 seconds. Dec 31 08:16:33 ma25555 kernel: [1200289.835249] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. code....
I have tried the connection between the 2 servers using ping for one day and all are OK (zero lost)
There are 3 other servers that are running Debian 4 and are working fine.
About 3 months ago I upgraded from 8.04 to 10.04 and the experience has since been very problematic in regards to overall performance. The problem is mostly with MySQL, but I have also noticed that the smallest amount of disk IO slows down the system a lot. I was expecting a slight performance improvement before I upgraded, but instead I got a very big opposite. I tried tweaking the MySQL server settings, but the improvement has been minimal.
At this point I am going to have to make a new system with something like Centos (I've heard good things about it's performance). Before I do, I want to give Ubuntu one last chance and ask if anyone knows anything that can be done to fix the performance issues. At the very least go back to something that is comparable to 8.04?
I have 8.04.3 server-32bit. It is on an HP 2.3ghz Pent 4 with 512 mb of RAM.I had previously installed Ubuntu and Kubuntu in a dual boot with XP (actually had a triple boot with XP, Ubuntu, and a BETA Windows 7) for a while, Grub got messed up so I ended up wiping it and just put my XP back on it. I have been intimidated by the command line and when thinking server, I tried the 30 day deal with windows Home server, its OK but it's $100.00 for the permenant version.
Anyway, I manned up to the challenge, installed Ubuntu server, set up as SSH and Samba. I administer from PuTTy and WEBMIN, I tried TightVNC but the GUI seemed very useless, so on a reinstall I went headless.The problem is I have alot of MP3 files I want to transfer back to the server that I had previously transfer to and back again from the Windows server, it was sceamin' fast compared to this. I have found threads talking about using NTFS, I have the EX3, or whatever the Ubuntu format is. Could that cause slow transfers, from NTSF through Samba to Ubuntu?
Today I installed Ubuntu server 9.10 on my old sony laptop with 512MB of RAM and 2.4GH celeron CPU. I hooked up my server to the router(D-Link) using cable. Now I try to upload or download data(mostly my music) to the server the speed is no higher than 500-700 KB/s. Although at first it used to be around 1.2 MB which is still considered to be low, but is there anyone who knows what I should do? By the way, I use SSH on Ubuntu 9.10 to connect to my server.
then I connect into work through a secure vpn connection that used to be reasonably fast. Sometime in the last year or so it has slowed down dramatically as if they added a one minute delay between pages. Everything works fine otherwise. It's just slower. At work they use all microsoft software, server software, etc. and if I connect in my friend's laptop with Windows 7 it works quite well and the pages load quickly like my Kubuntu laptop used to. What I'm wondering is if this is some kind of compatibility issue between Windows explorer and Firefox browsers or just a sour grapes issue on Microsoft's behalf where they slowed things down on purpose?
I have many openvpn implementations. Every time I use windows shares over openvpn, the speed is no more than 500KB/s, in LAN environment. When I start a copy it reaches 200-300KB/s, when I start second one it reaches 500KB/s. No more is reached after more copies simultaneously. When I use linux to copy files - the first copy reaches 700KB/s, the second copy reaches 2.5MB/s (then the first grows also to 2.5MB/s), the third copy reaches also 2.5MB/s. All of these are copied simultaneously, otherwise when only one is started it sits on 700KB/s. Moreover when 2 of the 3 simultaneous copy processes end, the one left backs at 700KB/s again.
But this is linux. When I use Windows the transfer speed is no more than 400-500KB/s (LAN environment). The OpenVPN server is always ubuntu (any version - I've tried 6.06, 8.04, 10.04).
Tried the OpenVPN client in ubuntu (and the windows machine behind the ubuntu), in windows (directly installed the client on windows) and it is all the same - no more than 500KB/s.
I can not use this because it is so slooow. When only one file is copied at a time it reaches only 200KB/s!!! Searched all the google results - no one have an answer, although there are many people with the same problem.
Now, I am sure that the problem is in Windows, because when I use linux as a server and as a client, the client copies fast. But when I use windows as machine behind the client it copies slow. I don't know... something in the tcp/ip settings in windows or something...
I posted this yesterday, but my post completely disappeared (I looked high and low -- nothing.) I am using Ubuntu Server 10.04, all the latests updates. For an FTP Server, I use ProFTP.
One specific directory, and it's subdirectories on my server will not download at a reasonable rate. They move at about 17-50KBPS. All other folders work fine, at around 1.5-2.5MBPS.
What is going on? I have no idea how to troubleshoot this. The files being transfered are in a directory under home. They should have no permissions issues (I reapplied the permissions I want already), I tried restarting ProFTP, the files vary in sizes (from a few kilobytes to about 120 megabytes). I use Webmin for most web management.
I am not having overload issues with my network card or CPU utilization while downloading these files. They are being accessed from the local network.
This issue is taxing because the files in question are backup files.
I have ubuntu server 10.04 on a server with 2.8ghz 1gb ddr2 with the os on a 2gb cf card attached to the IDE channel and a software raid5 with 4 x 750gb drives. On a samba share using these drives I am only getting around 5 MB/s connected via wireless N at 216mbps and my router and server both having gigabit ports. Is a raid 5 supposed to be that slow? I was seeing speeds of anywhere from 20-50MB/s from other people and am just wondering what i am doing wrong to be so far below that.
I've got Ubuntu Server 10.04 on a fairly beefy box (quad-core xeon 2.67ghz, 2gb ram) Standard mysql-server installed, with many databases.Lately, mysql has been extremely slow and almost non-responsive. Server loads are low.Running mtop reveals many, many processes from the user: debian-sys-maint querying the information_schema table with the exact same query, over and over."Select count(*) from tables where engine = 'innodb'"
This is adversely affecting my database server, and thus my websites which rely on mysql. Every search I've done looking for more information about the debian-sys-maint user shows problems where that users was deleted. The user isn't deleted.
Whenever a client tries to download a file from my server via ftp, SAMBA, Teamspeak 3 File Transfer, etc., they report very slow download speeds, around 3-6 kb/s. If I try a ftp file transfer locally, the upload speeds are normal, but I still experience slow download speeds.
My server is connected to a router, which connects to the internet. All other machines connected to that router can upload and download files at normal speeds. It seems to be a server problem, I just don't know where to start.
I recently built a small server for my dad, to host a business website aswell as manage storage of important documents (raid 1).Yesterday I thought I would try out zentyal. I got it working, mostly. It seemed very useful.However, ANY password authentication; including login, sudo, ssh, was extremely laggy. Were talking a minute after entering the password.I have done
Code: sudo apt-get purge zentyal zentyal-samba And
I've got three disks together on a *home* server that constitute four LVs.The two are the root and swap LVs installed by the Ubuntu 10.04.2 LTS installer on the OS drive (250 GB VG: Beta). The third & fourth LVs I made of two physical volumes (640 GB and 200 GB VG: Data) and mounted each inside /torrent. All are ext4.
I'm migrating lots of large files from /home to inside of /torrent, but I'm seeing EXTREMELY slow speeds (700KB/s).I'll admit this is my first time using LVM, and I tried it only because of the numerous smaller drives I have sitting around that weren't getting used. I didn't expect such a large drop in speed.
Here's a more technical review of the setup:
Code:
me@Beta:~$ sudo pvdisplay [sudo] password for me: --- Physical volume --- PV Name /dev/sdb VG Name Data
I have an Ubuntu 10.04 server here, and this week internet sharing got too slow... i dunno if it is a squid problem... but it's too slow. And when i try to registar a domain for that server, bind gives do response. If i dig my server inside lan, it's working pretty well.
FTP from and from my home computers to 2 remote servers has become really slow over the past month. One of the remote servers I manage and the other one is taken care of by a hosting company, so I am thinking the problem is residing on my end. It doesn't matter if I am downloading 1 file or 10 files, they are all coming in at 9 kb/s which is really slow cause I have a 7 megabit connection. I've tried using multiple computers and still have the same problem. I am using proftp for the ftp server and filezilla for the client.
I have an urgent issue with my apache. Since last night approximately 50% of my vhosts are responding very slowly. That means I see a blank page for 1 minute and then the content comes up real quick.I restored the httpd.conf file but it didn't solve the problem.
I'm on Ubuntu 10.04 and using Postfix 2.7 with Dovecot's SASL. The issue is when sending e-mail it takes a bit of time to send. LIke for it to get connected it takes around 15.20 seconds. How can I reduce this delay so it can be sent faster?
It takes 45min to transfer 10MB from my laptop to my replacement server. It takes 1minute to transfer the same 10MB from my laptop to the old server.
All connections are equal. Both servers are plugged to the same router.
Details: I have decided to migrate away from my Proliant 1600 to a slightly newer less complex piece of hardware.
Both machines are LAMP installs. Both are setup to be maintained headless 99% of the time and gnome is launched from the command line only when it is needed.
The older machine has more things running on it than the replacement. The replacement has nothing running that the older machine does not have.
Old box runs Ubuntu 6.06 but was fully updated a month ago. Replacement box runs Ubuntu 10.10 and was fully updated just last night.
smb.conf was the same on both boxes other than the share locations. Reading trying to fix it myself, I did put some known speedup lines into the new box's smb.conf, but it did not make a noticeable difference.
Hardware: Old box, Proliant 1600 = 1998 small server tech. (weighs 50lbs w/o drives) single 500mhz xeon (upgradable to 2 600mhz, though they are hard to find reasonably priced) 1GB SDRAM with ECC
[Code].....
It does not matter what share/drive/partition I transfer to on either machine. The result is always the same.
On the newer computer CPU usage rarely goes over 50% and it has not had to go into swap at all yet.