Created
December 8, 2020 15:40
-
-
Save Knase/10f32af4032ce46020e2919480e83e0a to your computer and use it in GitHub Desktop.
Memory snapshot of the current processes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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