Seriom

Active Member
Sep 23, 2005
39
0
156
I am getting the flashing red icon because my memory is up really high

what causes the memory to get used up so much? something constantly processing?

how can I see what is doing it?
 

Seriom

Active Member
Sep 23, 2005
39
0
156
my memory is still pretty high, anyone have any options?
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,221
4
193
Minneapolis, MN
my memory is still pretty high, anyone have any options?
First, see which processes are exhausting your memory. Run the command top and while you are in top hit M to sort processes by memory usage. If that doesn't help, you need to ask your Data Center to check on the memory sticks, there might be a leakage there. Hope this helps!
 

Seriom

Active Member
Sep 23, 2005
39
0
156
Still having this issue, no other threads have helped, this is what I get from the "top" command

last pid: 98634; load averages: 0.21, 0.31, 0.36 up 92+01:35:01 16:13:03
222 processes: 1 running, 221 sleeping
CPU states: 15.7% user, 0.0% nice, 6.9% system, 0.4% interrupt, 77.0% idle
Mem: 678M Active, 66M Inact, 220M Wired, 31M Cache, 111M Buf, 2428K Free
Swap: 2048M Total, 479M Used, 1569M Free, 23% Inuse, 56K In, 904K Out

PID USERNAME VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND
97398 nobody 47 193 0 0 1 1 5.26% httpd
98564 nobody 26 71 0 0 0 0 0.00% httpd
98625 nobody 25 112 0 0 6 6 31.58% httpd
98626 nobody 21 92 0 0 0 0 0.00% httpd
98622 nobody 28 79 0 0 0 0 0.00% httpd
98227 nobody 27 75 0 0 7 7 36.84% httpd
65133 nobody 22 111 0 0 0 0 0.00% httpd
36755 nobody 4 6 0 0 0 0 0.00% httpd
98225 nobody 0 0 0 0 0 0 0.00% httpd
98610 nobody 3 1 0 0 0 0 0.00% httpd
87758 nobody 11 11 0 0 2 2 10.53% httpd
95336 nobody 9 10 0 0 0 0 0.00% httpd
37380 root 905 573 0 0 0 0 0.00% sc_serv
93223 root 0 0 0 0 0 0 0.00% perl5.8.8
93305 mailman 2 0 0 0 0 0 0.00% python2.4
93304 mailman 2 0 0 0 0 0 0.00% python2.4
93301 mailman 2 0 0 0 0 0 0.00% python2.4
93300 mailman 2 0 0 0 0 0 0.00% python2.4
93303 mailman 2 0 0 0 0 0 0.00% python2.4
93306 mailman 2 0 0 0 0 0 0.00% python2.4
93302 mailman 2 0 0 0 0 0 0.00% python2.4
61136 root 2 0 0 0 0 0 0.00% perl5.8.8
25210 root 1 0 0 0 0 0 0.00% perl
25212 root 0 0 0 0 0 0 0.00% perl5.8.8
62796 bind 7 0 0 0 0 0 0.00% named
474 root 0 0 0 0 0 0 0.00% sshd
36844 mysql 667 200 0 0 0 0 0.00% mysqld
61088 mailnull 0 0 0 0 0 0 0.00% exim-4.63-0
340 root 0 0 0 0 0 0 0.00% syslogd
25261 mailnull 1 0 0 0 0 0 0.00% perl5.8.8
36732 nobody 0 0 0 0 0 0 0.00% httpd
36759 nobody 0 0 0 0 0 0 0.00% httpd
36754 nobody 0 0 0 0 0 0 0.00% httpd
36723 nobody 0 0 0 0 0 0 0.00% httpd
36748 nobody 0 0 0 0 0 0 0.00% httpd
36738 nobody 0 0 0 0 0 0 0.00% httpd
36753 nobody 0 0 0 0 0 0 0.00% httpd
36729 nobody 3 1 0 0 0 0 0.00% httpd
36741 nobody 2 2 0 0 0 0 0.00% httpd
 

DaveUsedToWorkHere

Well-Known Member
Dec 28, 2001
689
1
318
98625 nobody 25 112 0 0 6 6 31.58% httpd
98227 nobody 27 75 0 0 7 7 36.84% httpd
87758 nobody 11 11 0 0 2 2 10.53% httpd

Check out these three httpd processes to see what they are. The following command will show only httpd processes.

ps auxwww | grep httpd

or

ps auxwww | grep httpd | less

The second will pipe the output to less so you can easily search for the IDs of the above processes.


You can use the Modify Apache Memory Usage Limit function in WHM to limit Apache's memory usage as well.

If the processes running are normal and functioning properly, you'll need to look at upping the ram in the machine or migrating those accounts to a machine with more ram.
 

mohit

Well-Known Member
Jul 12, 2005
553
0
166
Sticky On Internet
thanks for the command

hi,
thanks for showing a way to catch the RAM Eating process in Apache.

I've a question.
when your box is using 2 or 3% CPU and 18% RAM during peak when there are many php based sites having traffic, mostly (wordpress and joomla ones)

will clicking "Modify Apache Memory Usage Limit " allocate more RAM to apache than the current to let apache use more of RAM for sites which are currently getting served from apache ?

my current httpd.conf shows.
#Rlimit added by apachelimits.pl
#-
RLimitMEM 291741354
RLimitCPU 240

which is approx 278MB

Will it help by increasing this limit ?

regards,
mohit
 

mohit

Well-Known Member
Jul 12, 2005
553
0
166
Sticky On Internet
hi,
in my case Installed memory is 2GB, and max i saw is 23% memory usage on my box, mostly it stays at 16%-18% but CPU usage sometimes goes to 3 or 4 when few busy php based sites get traffic bunches.

Any Suggestions ?

see ya,
mohit