Oracle
1Z0-161 · Question #31
You are troubleshooting an application and suspect that the issue lies with the use of Java Virtual Machine threads. Because of firewall restrictions, you cannot use web-based consoles to access the…
The correct answer is B. Log in to the Managed Server VM via SSH Use jstack to determine the process ID (pid) of the Java process that is running the WebLogic instance Run: sudo -u <pid> io.output_thread_dump to the stdout stream of the process. See the full explanation below for the reasoning.
Question
You are troubleshooting an application and suspect that the issue lies with the use of Java Virtual Machine threads. Because of firewall restrictions, you cannot use web-based consoles to access the WebLogic Server diagnostic information. Which command-line operations could you use to investigate the internal state of JVM threads?
Options
- ALog 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 password> GETSTATE to initiate a JVM thread dump, applying appropriate values for the arguments in angle brackets
- BLog in to the Managed Server VM via SSH Use jstack to determine the process ID (pid) of the Java process that is running the WebLogic instance Run: sudo -u <pid> io.output_thread_dump to the stdout stream of the process
- CLog in to the Managed Server VM via SSH Use the Linux command: kill -SIGDUMP <pid>, where <pid> is the process id of the JVM
- DLog in to the Managed Server VM via SSH Run the java -Xcheck:jni MyApp with the verbose : gc option
How the community answered
(36 responses)- A17% (6)
- B69% (25)
- C6% (2)
- D8% (3)
Community Discussion
No community discussion yet for this question.