Skip to content

Instantly share code, notes, and snippets.

@davepullig
Created October 22, 2021 11:13
Show Gist options
  • Save davepullig/1b3d723487b4f4b75b6282bce5dd9b44 to your computer and use it in GitHub Desktop.
Save davepullig/1b3d723487b4f4b75b6282bce5dd9b44 to your computer and use it in GitHub Desktop.
Average memory usage of a php-fpm process
ps --no-headers -o "rss,cmd" -C php-fpm7.4 | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment