Forum Moderators: bakedjake

Message Too Old, No Replies

Apache load

         

rajeshk98

5:14 pm on Nov 1, 2006 (gmt 0)

10+ Year Member



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.

physics

9:22 pm on Nov 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try

ps auxww ¦ grep httpd

Make sure to replace that pipe ... i.e. don't just copy and paste.

Dainichi

6:38 am on Nov 8, 2006 (gmt 0)

10+ Year Member



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'`