Skip to content

Instantly share code, notes, and snippets.

@Knase
Created December 8, 2020 15:40
Show Gist options
  • Save Knase/10f32af4032ce46020e2919480e83e0a to your computer and use it in GitHub Desktop.
Save Knase/10f32af4032ce46020e2919480e83e0a to your computer and use it in GitHub Desktop.
Memory snapshot of the current processes
ps --no-headers -o "rss,cmd" -C php-fpm | 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