Last active
November 23, 2020 16:31
-
-
Save mesaque/983ac9b70515ba8510a5 to your computer and use it in GitHub Desktop.
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
| #see amount of memory a soft will use: | |
| ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }' | |
| ps --no-headers -o "rss,cmd" -C php-fpm | grep elitte_ps | 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