Changes

Jump to navigation Jump to search
142 bytes added ,  23:24, 26 November 2015
no edit summary
Line 19: Line 19:  
  ps -ylC httpd | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' && echo -n 'current Apache Processes : ' && ps -C httpd --no-headers | wc -l
 
  ps -ylC httpd | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' && echo -n 'current Apache Processes : ' && ps -C httpd --no-headers | wc -l
   −
 
+
This outputs the following information;
 +
Apache Memory Usage (MB): 1737.91
 +
Average Proccess Size (MB): 75.5611
 +
current Apache Processes : 23
    
2.Prepare the collection of the relevant parameters that you want to monitor ( in this case, http stats )
 
2.Prepare the collection of the relevant parameters that you want to monitor ( in this case, http stats )
80

edits

Navigation menu