phranque

msg:3850496 | 9:27 am on Feb 16, 2009 (gmt 0) |
on netbsd, "ps -aux" will do that for me. you might need root permissions to see the web server processes.
|
digitsix

msg:3850733 | 4:49 pm on Feb 16, 2009 (gmt 0) |
ps only lists the process name "httpd" (or something like that). I need to find out the path and name of the script that httpd process forked and is running. so say the process httpd has been running for 200 minutes and is using 70% cpu all i can see is something like this: daemon 64343 0.2 1.5 90632 15952 ? S 10:24AM 0:02.51 /usr/local/apache/bin/httpd -k start I need a way to take pid 64343 and get information on what files its running or working with so that I can track down the problem. Currently the only thing I know to do would be to cross ref my httpd access logs with the timestamp of the start date and time of the process but my logs are purged every four hours by the statistics engine so unless i catch the process within the four hour window i have there is no log to reference. :(
|
jeffatrackaid

msg:3853185 | 4:03 pm on Feb 19, 2009 (gmt 0) |
Try using lsof. man lsof
|
prhost

msg:3855440 | 10:02 pm on Feb 22, 2009 (gmt 0) |
Keep an eye on 'top'
|
eeek

msg:3878059 | 11:22 pm on Mar 24, 2009 (gmt 0) |
| logs are purged every four hours by the statistics engine |
| Have you considered disabling that until you find the problem?
|
|