Posted By

bluecap on 08/29/14


Versions (?)

Show Apache Memory Usage and Average Process Size

 / Published in: Bash

Shows the current Apache memory usage and average process size.

  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  

You need to login to post a comment.