QuestionQ19
Troubleshooting and MaintenanceYou are troubleshooting an application and believe the problem may be related to its use of Java Virtual Machine threads. Firewall restrictions prevent you from using web-based consoles to access WebLogic Server diagnostic data.
Which command-line operations can you use to examine the internal state of JVM threads?
- A Log in to the Managed Server VM via SSH Run the script <wlserver_home>/server/bin/setWLSEnv.sh to set the Java classpath Run java weblogic.Admin url localhost:<listen port> -username <wluser> -password <wl passwd> GETSTATE to initiate a JVM thread dump, applying appropriate values for the arguments in angle brackets
- B • Log in to the Managed Server VM via SSH • Use ps to determine the process id (pid) of the Java Process that is running the WebLogic instance • Run: kill-3 <pid> to output the thread dump to the stdout stream of the process
- C • Log in to the Managed Server VM via SSH • Use the Linux command: kill –SIGDUMP <pid>, where <pid> is the process id of the JVM
- D • Log in to the Managed Server VM via SSH
Community Discussion