Changes

From SME Server
Jump to navigationJump to search
254 bytes added ,  22:23, 26 November 2015
no edit summary
Line 16: Line 16:  
==Getting Started==
 
==Getting Started==
   −
1.Prepare the collection of the relevant parameters that you want to monitor ( in this case, http stats )
+
1. Find the relevant info re; http
 +
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
 +
 
 +
 
 +
 
 +
2.Prepare the collection of the relevant parameters that you want to monitor ( in this case, http stats )
 
create a shell script: ( apache_memory_usage_show_to_database.sh )
 
create a shell script: ( apache_memory_usage_show_to_database.sh )
 
  #/usr/bin
 
  #/usr/bin
80

edits

Navigation menu