| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
| 5:14 pm on Nov 1, 2006 (gmt 0)|
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.
| 9:22 pm on Nov 6, 2006 (gmt 0)|
ps auxww ¦ grep httpd
Make sure to replace that pipe ... i.e. don't just copy and paste.
| 6:38 am on Nov 8, 2006 (gmt 0)|
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.
© Webmaster World 1996-2013 all rights reserved