Skip to content

Instantly share code, notes, and snippets.

@AshishThakur
Last active May 1, 2023 01:39
Show Gist options
  • Save AshishThakur/c28d49908c4d2bd8189d3c3413977f54 to your computer and use it in GitHub Desktop.
Save AshishThakur/c28d49908c4d2bd8189d3c3413977f54 to your computer and use it in GitHub Desktop.
Profiling
*apach2 + php-fpm profiling*
ps -ylC apache2 --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}'
ps -ylC php-fpm --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment