Show Apache Memory Usage and Average Process Size


/ Published in: Bash
Save to your folder(s)

Shows the current Apache memory usage and average process size.


Copy this code and paste it in your HTML
  1. ps -ylC apache2 | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Process Size (MB): "x/((y-1)*1024)}'

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.