Search This Blog

Wednesday, July 19, 2017

Script for getting JVM Import Parameters like threadudmp , java flags , command line arguments etc

Script for getting JVM Important Parameters like threadudmp , java flags , command line arguments etc
jcmd -l | grep weblogic.Server | awk '{print $1}' | while read pid; do
   echo 'Java Properties and Thread Dump for pid ' "$pid" 'Start time' `date`
   echo "$pid" Thread.print
   jcmd "$pid" Thread.print
   echo "$pid" VM.system_properties
   jcmd "$pid" VM.system_properties
   echo "$pid" VM.flags
   jcmd "$pid" VM.flags
   echo "$pid" VM.command_line
   jcmd "$pid" VM.command_line
   echo "$pid" VM.version
   jcmd "$pid" VM.version
   echo "$pid" VM.uptime
   jcmd "$pid" VM.uptime
done




Tags: Publish
July 19, 2017 at 12:08PM
Open in Evernote