LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-20-2006, 11:48 PM   #1
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Rep: Reputation: 30
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
 
Old 12-21-2006, 12:08 AM   #2
edenCC
Member
 
Registered: May 2006
Location: China
Distribution: Debian
Posts: 198
Blog Entries: 1

Rep: Reputation: 32
what the environment? does it work with other programmes?
 
Old 12-21-2006, 12:20 AM   #3
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Original Poster
Rep: Reputation: 30
Centos in this case so redhat env.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X eating lot of RAM. _UnPrEdictAbLe_ Fedora 4 08-19-2006 10:39 PM
Server Eating up RAM?? Louie55 Linux - General 2 01-22-2005 05:20 PM
Fedora eating up RAM and CPU sokar Linux - General 2 01-25-2004 02:47 PM
Pan eating up my ram Andromea Linux - Software 3 11-12-2003 03:14 PM
Linux is eating my RAM!! tarballedtux Linux - General 11 05-24-2002 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration