httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JW ...@centraltexasit.com>
Subject Figuring out how much memory apache is using?
Date Thu, 04 Jul 2002 07:32:16 GMT

Sorry to ask such a lame Q, but I'm tired and my brain isn't working.

I'm trying to figure out how much memory, totaly, apache is using, and I'm
 confused abouit what's shared and what's not. See the following ps (right side
 snipped off):

jw@fluorite:/work/jw/2do > ps -auxwf|less
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
<snip>?
root     10369  0.0  0.0 56512   48 ?        S    Jun27   0:24
 /usr/sbin/httpd -f /etc/httpd/httpd.conf -D STATUS -D wwwrun   10370  0.0 
 0.6 23028 1704 ?        S    Jun27   0:00  \_ /usr/sbin/fcgi- -f
 /etc/httpd/httpd.conf -D STATU wwwrun   10371  0.0  6.1 120076 15700 ?     
 S    Jun27   0:37  \_ /usr/sbin/httpd -f /etc/httpd/httpd.conf -D STATU
 wwwrun   10372  0.0  5.7 101772 14588 ?      S    Jun27   0:31  \_
 /usr/sbin/httpd -f /etc/httpd/httpd.conf -D STATU wwwrun   10373  0.0  6.4
 116124 16436 ?      S    Jun27   0:42  \_ /usr/sbin/httpd -f
 /etc/httpd/httpd.conf -D STATU wwwrun   10421  0.0  5.7 106488 14620 ?     
 S    Jun27   0:33  \_ /usr/sbin/httpd -f /etc/httpd/httpd.conf -D STATU
 wwwrun   10425  0.0  5.9 112312 15180 ?      S    Jun27   0:35  \_
 /usr/sbin/httpd -f /etc/httpd/httpd.conf -D STATU wwwrun   10426  0.0  5.8
 118792 14984 ?      S    Jun27   0:39  \_ /usr/sbin/httpd -f
 /etc/httpd/httpd.conf -D STATU

So on average each child is using 6% of my 256 MB. That's 15MB PER CHILD.
 That seems HUGE. How are you supposed to calculate that?

I've had some people suggest that just one of those represents the whole
 apache usage. I don't think that can possibly be accurate. I've had others
 suggest that I do total_mem * 6% * number_of_children and I don't think
 that's right either.

*help* :-)

	JW

- --

- ----------------------------------------------------
Jonathan Wilson
System Administrator
Cedar Creek Software     http://www.cedarcreeksoftware.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message