Question: How to Generate Heap Dump in Weblogic Explain the Command?
Answer: Here are the most common ways to do it. You will use these if you have Out Of MemoryException (OOM) and you would like to take a look at the issue to determine the root cause.
1. For Hotspot/Oracle JDK, you need to add the following parameters to JAVA_OPTIONS
2. Similarly for JRockit, you need to the JAVA_OPTIONS below:
But, let’s say that you are experiencing OOM, but you still don’t determine the root cause of the issue.
You might probably need to restart as soon as you see performance issues or even better daily.
Then, #1 and #2 won’t help.
You can use a tool like the ones below:
3. Jump, e.g.:
JAVA_HOME/bin/jmap -dump:format=b,file=c:\temp\heap.prof PID
4. Or if you have already a core file and you would like to have a heap dump as well, you can also get a heap dump: (E learning)
jmap -dump:format=b,file=heap.prof $JAVA_HOME/bin/java /home/limestone/core.27436
5. Or even jrcmd for JRockit:
%JROCKIT_HOME%\bin\jrcmd PID of target JVM hprofdump filename=full pathname to the target dump file name.
All Weblogic Interview Questions
Weblogic VideosDuration: 20-25 Hours | Version: 12c, 11g | Admin
- Experienced Faculty
- Real-time Scenarios
- Free Bundle Access
- Course Future Updates
- Sample CV/Resume
- Interview Q&A
- Complimentary Materials