Find largest apache process

ps -ylC apache2 | awk ‘{s+=$8} END {print s/1024/(NR – 1)}’
ps -ylC httpd | awk ‘{s+=$8} END {print s/1024/(NR – 1)}’

To calculate mysql usage:

Calculate MySQL Memory Usage – Quick Stored Procedure

About vicki

Welcome to the Sovereign Republic of Vickistan. I am the President here. Lucky me! No taxes or laws yet. Lucky you!
This entry was posted in Linux. Bookmark the permalink.