Last active
November 30, 2015 02:27
-
-
Save tqyq/4990c1abbf297d7c5482 to your computer and use it in GitHub Desktop.
ps get php memory usage
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
total=0; for i in `ps -C php-fpm -o rss=`; do total=$(($total+$i)); done; echo "Memory usage: $total kb"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment