Changes

From SME Server
Jump to navigationJump to search
241 bytes added ,  22:17, 26 November 2015
no edit summary
Line 20: Line 20:  
  #/usr/bin
 
  #/usr/bin
 
  while true
 
  while true
 +
do
 +
LOG=outlog.txt
 +
OUTPUT=$(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 ':Apache Processes: ' && ps -C httpd --no-headers | wc -l  )
80

edits

Navigation menu