Find the apache process eating my ram?
Do a top U apache and see this
3657 apache 16 0 86476 51m 5136 S 1 1.3 0:04.95 httpd
3609 apache 16 0 61576 33m 644 S 0 0.8 0:00.00 httpd
3654 apache 15 0 88440 52m 4632 S 0 1.3 0:05.27 httpd
3656 apache 15 0 84620 49m 4840 S 0 1.2 0:04.86 httpd
3659 apache 15 0 88488 52m 4828 S 0 1.3 0:05.85 httpd
3660 apache 15 0 88732 53m 5124 S 0 1.3 0:05.37 httpd
3661 apache 15 0 87624 52m 4824 S 0 1.3 0:05.72 httpd
3662 apache 15 0 89076 53m 4304 S 0 1.3 0:05.43 httpd
3663 apache 15 0 86668 51m 5168 S 0 1.3 0:05.23 httpd
3681 apache 16 0 85500 50m 5100 S 0 1.2 0:05.47 httpd
3726 apache 15 0 88032 52m 4516 S 0 1.3 0:05.12 httpd
3727 apache 15 0 90408 54m 4816 S 0 1.4 0:04.83 httpd
9543 apache 15 0 82320 46m 4252 S 0 1.1 0:02.76 httpd
9570 apache 16 0 83396 47m 4036 S 0 1.2 0:02.71 httpd
9571 apache 15 0 86488 50m 4268 S 0 1.2 0:03.34 httpd
Now after a while one of those apache processes is using 1.3 gig of ram.
I then trace the process as follows:
# ls -la /proc/13135
total 0
dr-xr-xr-x 3 apache apache 0 Dec 21 16:17 .
dr-xr-xr-x 180 root root 0 Dec 20 23:43 ..
dr-xr-xr-x 2 root root 0 Dec 21 16:47 attr
-r-------- 1 root root 0 Dec 21 16:47 auxv
-r--r--r-- 1 root root 0 Dec 21 16:47 cmdline
lrwxrwxrwx 1 root root 0 Dec 21 16:47 cwd -> /
-r-------- 1 root root 0 Dec 21 16:47 environ
lrwxrwxrwx 1 root root 0 Dec 21 16:47 exe -> /usr/sbin/httpd
dr-x------ 2 root root 0 Dec 21 16:47 fd
-rw-r--r-- 1 root root 0 Dec 21 16:47 loginuid
-r-------- 1 root root 0 Dec 21 16:47 maps
-rw------- 1 root root 0 Dec 21 16:47 mem
-r--r--r-- 1 root root 0 Dec 21 16:47 mounts
lrwxrwxrwx 1 root root 0 Dec 21 16:47 root -> /
-r--r--r-- 1 root root 0 Dec 21 16:17 stat
-r--r--r-- 1 root root 0 Dec 21 16:17 statm
-r--r--r-- 1 root root 0 Dec 21 16:17 status
dr-xr-xr-x 3 root root 0 Dec 21 16:47 task
-r--r--r-- 1 root root 0 Dec 21 16:47 wchan
--------
But this doesnt reeally tell me what website is actually responsible for this, all these process look the same?
So how can I find out what site is using all my ram, other command maybe?
Thanks
|