| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
How can i see the httpd load alone on the server.
What is the command to see the apache load alone on the server othere then the TOP command.
ps auxww ¦ grep httpd
Make sure to replace that pipe ... i.e. don't just copy and paste.
One more way to know how server works:
#str=`echo -e "GET /server-status\n" ¦ nc -vv example.com 80 ¦ head -n 16 ¦ tail -n 2`
($str now is CPU Usage: u20.1328 s32.9766 cu0 cs0 - 9.62% CPU load<br> 307 requests/sec - 1.6 MB/second - 5.4 kB/request<br>)
#requests=`echo $str ¦ perl -ne 'm/([\d]+) requests/; print $1'`1'
#cpuload=`echo $str ¦ perl -ne 'm/([\d.]+)% CPU load/; print $1'`
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved