Skip to content

Instantly share code, notes, and snippets.

@jcrossley3
Created August 9, 2013 16:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcrossley3/6194964 to your computer and use it in GitHub Desktop.
Save jcrossley3/6194964 to your computer and use it in GitHub Desktop.
[jim@thinky poorsmatic]$ for i in $(rhc app show --gears | sed '1,2 d' | cut -d ' ' -f 6); do echo "HOST: $i"; ssh $i jstat -gcutil $\(jps -l \| grep jboss-modules \| awk \'{print \$1}\'\); done
HOST: 5203f3cae0b8cd0552000935@poorsmatic-jimi.rhcloud.com
S0 S1 E O P YGC YGCT FGC FGCT GCT
49.59 0.00 63.45 85.27 99.90 54 7.798 1 2.828 10.626
HOST: 52040513500446daa5000c2c@52040513500446daa5000c2c-jimi.rhcloud.com
S0 S1 E O P YGC YGCT FGC FGCT GCT
0.00 0.00 100.00 99.16 99.88 1110 140.653 194 568.457 709.110
HOST: 52040513500446daa5000c2d@52040513500446daa5000c2d-jimi.rhcloud.com
S0 S1 E O P YGC YGCT FGC FGCT GCT
0.00 45.88 98.27 89.67 99.87 55 8.342 1 2.471 10.813
[jim@thinky poorsmatic]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment