Skip to content

Instantly share code, notes, and snippets.

@tqyq
Last active November 30, 2015 02:27
Show Gist options
  • Save tqyq/4990c1abbf297d7c5482 to your computer and use it in GitHub Desktop.
Save tqyq/4990c1abbf297d7c5482 to your computer and use it in GitHub Desktop.
ps get php memory usage
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