Skip to content

Instantly share code, notes, and snippets.

@azusa
Created July 2, 2013 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azusa/5909188 to your computer and use it in GitHub Desktop.
Save azusa/5909188 to your computer and use it in GitHub Desktop.
jstat を タイムスタンプ & VM起動からの経過秒と一緒に表示するためのスクリプト
p=`ps aux |grep tomcat |grep web |grep java |awk '{print $2}'`; jstat -gcutil -h10 $p 30000 | awk '{print strftime("%H:%M:%S"), $0}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment