Created
October 22, 2021 11:13
-
-
Save davepullig/1b3d723487b4f4b75b6282bce5dd9b44 to your computer and use it in GitHub Desktop.
Average memory usage of a php-fpm process
This file contains 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-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