You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Anderson Miranda <an...@brasilenergia.com.br> on 2005/07/11 15:51:22 UTC

[users@httpd] High load in httpd processes

Hi everyone,

I'm using the Apache HTTPD 2.0.54 webserver + PHP 4.3.11 on a Linux box. 
I'm having constant high loads in my httpd process, and I would like to 
find out what's causing this high load. eg, if it's a page, wich one is 
causing this high load.

Thanks in advance,
Anderson

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] High load in httpd processes

Posted by Linuks pytania <li...@o2.pl>.
> Hi everyone,
> 
> I'm using the Apache HTTPD 2.0.54 webserver + PHP 4.3.11 on a Linux box. 
> I'm having constant high loads in my httpd process, and I would like to 
> find out what's causing this high load. eg, if it's a page, wich one is 
> causing this high load.
> 
> Thanks in advance,
> Anderson

Try to find which process eats your resources. Start with "top -d1" and <Shift>+P to see some PIDs. It is maybe a wrong PHP script with ie. infinite loop /while 1>0 {...}/, so switch on the full error+warning+notice reporting in libphp (php.ini) then look into Apache error_log. You may also add %T string (the time taken to serve the request, in seconds) in CustomLog in httpd.conf to see files and their runtime.

luke


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org