/ Published in: Bash
Shows the current Apache memory usage and average process size.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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)}'