[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Locating Runnaway Processes



Hi All,

I have a site that is taking up serious resources on the server.

  PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
 2348 httpd     13   0 11720 3124  1136 R       0 71.7  1.2 152:41 httpd

The CPU fluctuates from 50 - 99% and other httpd commands follow suit at
various intervals.

When i issue the command cd /proc/2348

The ls - al i get the following

[root 2348]# ls -al
total 0
dr-xr-xr-x   3 httpd    httpd           0 Mar  7 00:58 .
dr-xr-xr-x 151 root     root            0 Mar  5 18:41 ..
-r--r--r--   1 root     root            0 Mar  7 00:58 cmdline
lrwx------   1 root     root            0 Mar  7 00:58 cwd ->
/home/sites/site30/web/secretworld
-r--------   1 root     root            0 Mar  7 00:58 environ
lrwx------   1 root     root            0 Mar  7 00:58 exe ->
/usr/sbin/httpd
dr-x------   2 root     root            0 Mar  7 00:58 fd
pr--r--r--   1 root     root            0 Mar  7 00:58 maps
-rw-------   1 root     root            0 Mar  7 00:58 mem
lrwx------   1 root     root            0 Mar  7 00:58 root -> /
-r--r--r--   1 root     root            0 Mar  7 00:58 stat
-r--r--r--   1 root     root            0 Mar  7 00:58 statm
-r--r--r--   1 root     root            0 Mar  7 00:58 status

Which tells me that its site 30 that is causing the problem,

Now i know this guy is using Vbulletin on his site and using MySQL, so i
tried to kill all his mysql connections to see if it was one of these but it
didnt get rid of the process.

Any ideas on how to find out which script in his site is causing this usage
on a daily basis??

regards..

Mark