You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Samuel Vogel <sa...@gmx.de> on 2007/09/13 22:08:29 UTC

[users@httpd] Investigating Apache processes

Hey,

Right now on one of my Servers, Apache is taking up most of my CPU time, 
and has spawned 6 to 8 processes, that all us between 20 % and 30 % of 
my CPU.
My guess is, that a PHP Skript is causing this!
How could I investigate further to find out what file/skript an certain 
apache process is processing right now?

Regards,
Samy

---------------------------------------------------------------------
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] Investigating Apache processes

Posted by "McDougall, Marshall (FSH)" <Ma...@gov.mb.ca>.
>-----Original Message-----
>From: Samuel Vogel [mailto:samy-delux@gmx.de] 
>Sent: Thursday, September 13, 2007 3:08 PM
>To: users@httpd.apache.org
>Subject: [users@httpd] Investigating Apache processes
>
>Hey,
>
>Right now on one of my Servers, Apache is taking up most of my 
>CPU time, 
>and has spawned 6 to 8 processes, that all us between 20 % and 30 % of 
>my CPU.
>My guess is, that a PHP Skript is causing this!
>How could I investigate further to find out what file/skript 
>an certain 
>apache process is processing right now?
>
>Regards,
>Samy
>
If you are running Linux just do:

"ps -ef|grep httpd" to get the pid and then 
"lsof -p PID_FROM_ABOVE"
And that should produce a list of all the files that httpd is using at
that moment.

Regards, Marshall

---------------------------------------------------------------------
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] Investigating Apache processes

Posted by Ge...@gta-travel.com.
The reply is a bit late for your problem now, but another good way is to
to use strace to attach to the apache process that is consuming the most
resources at a particular time. It will give you absolutely loads of
information.

Regards

> -----Original Message-----
> From: Samuel Vogel [mailto:samy-delux@gmx.de] 
> Sent: 13 September 2007 21:08
> To: users@httpd.apache.org
> Subject: [users@httpd] Investigating Apache processes
> 
> Hey,
> 
> Right now on one of my Servers, Apache is taking up most of 
> my CPU time, and has spawned 6 to 8 processes, that all us 
> between 20 % and 30 % of my CPU.
> My guess is, that a PHP Skript is causing this!
> How could I investigate further to find out what file/skript 
> an certain apache process is processing right now?
> 
> Regards,
> Samy
> 
> ---------------------------------------------------------------------
> 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
> 

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

---------------------------------------------------------------------
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