Mark Post wrote:
On Fri, Mar 16, 2007 at  2:16 PM, in message
<[EMAIL PROTECTED]>,
James Melin <[EMAIL PROTECTED]> wrote:
All of that is well and good....  We can agree that my management here are
stingy. The bottom line question is this -  what native Linux display
commands can I use to determine the in- memory footprint of the httpd task(s)
so I have a ballpark figure. I have a light duty DB2 Connect server
running in 200 megs, and it's fat and happy. I just would rather not guess.

You could do something like this:
for pid in `ps ax | grep /http | cut -c1-6`; do grep ^Vm /proc/$pid/status ; 
done

Better,

for pid in `ps ax | grep /htt[p] | cut -c1-6`
 do grep ^Vm /proc/$pid/status
 done

One doesn't wish to count the grep.
Probably awk can do better.

--

Cheers
John

-- spambait
[EMAIL PROTECTED]  [EMAIL PROTECTED]

Please do not reply off-list

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to