Last active
September 23, 2015 02:47
-
-
Save mizoR/55fa5b91b22fd826f4de to your computer and use it in GitHub Desktop.
TASK_RUNNING な unicorn-worker の プロセス数を数えるワンライナー
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
| while; do; echo -n $(date); echo -n ' '; ps l --ppid=$(ps alx | grep unicorn | grep master | awk "{ print \$3 }") | awk "{ print \$10}" | grep R | wc -l; sleep 3; done rbenv:syst |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment