My server seems to have unusually high load for a webserver hosting about 7 sites with almost no traffic. Can anyone explain why Apache runs at 100% (or close) most of the time? Here are the specs: Ubuntu 7.0.4 (The Perfect etup) ISP Config, 1GB RAM, 2-2.4ghz proc. results of top: -John
Are there any errors in Apache's error log? Do you use eaccelerator for your PHP? http://www.eaccelerator.net/
Check your Apache configuration Post your http.conf LESS the comments. Be sure to check your setting for KeepAliveTimeout in http.conf Setting this to 1 can make a big difference in reducing server load. These settings also affect server load: Code: <IfModule prefork.c> StartServers MinSpareServers MaxSpareServers ServerLimit MaxClients MaxRequestsPerChild </IfModule> Be sure to restart Apache if you make any changes to http.conf. Also, as Falko suggested, a good php accelerator can make a big difference if your website contains lots pf php. I use XCache and find it to be better than eAccelerator but YMMV.
Here is a day from my Apache error log also: I have installed Xcache, but performance was never the issue. I am concerned that Apache seems to always want 100% of one or more proc's. -J
That means that this module is being loaded twice. You need to edit /etc/php.ini and comment out the line extension=json.so like this: Code: ;extension=json.so Then restart Apache. This should eliminate the error but it's unlikely to be the cause of your real problem. This error may mean your SSL certificate is corrupt: Code: [Sat Jan 05 18:48:17 2008] [error] [client 199.227.134.114] Invalid method in request \x80L\x01\x03 Here's a thread that may help fix that: http://www.howtoforge.com/forums/showthread.php?t=121 Your real problem is likely a runaway php process due to a bad script. One other thought. If you use MySQL then you should check and optimize the tables in your databases. phpMyAdmin works great for that.
Would it be feasable to turn PHP off one site at a time to determine where the problem is? All of the sites are migrated from other servers, so it is very possible that there are problemo of which I am unaware. -J
Yes That's easy to do in ISPConfig. Go to ISP Manager and click on each site. The Basis tab has an option to turn PHP Scripts on and off. Be sure to restart Apache after the change.