#Take #HeapDump #Analyze #HeapdumpFile
Take HeapDump and Analyze the file by VmVisual ► SUBSCRIBE & LIKE!!
► Official Email Id: techtalk.debu@gmail.com
► Download the Code GitHub : github.com/adm...
► Follow on Facebook: / techtalkdebu
► Follow on LinkedIn: / debu-paul
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
► Here is our amazing playlist for Core Java, Spring MVC/Boot, Git and Micro service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Core Java :: • Exception in Java deta...
2. Spring MVC & Spring Boot :: • Quick Start Spring Boo...
3. Micro Service :: • Micro Service - Monoli...
4. Git/GitHub :: • VCS - What is GitHub a...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Watch my "Most Watched Videos"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
► HTTPS & HTTPS protocol :: • What is HTTP Protocol ...
Playlist : • Core Java Interview Qu... Tutorial for beginners with examples, Interview Questions and Concepts.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Code Base & Info
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
heap dump whenever an OutOfMemoryError occurs.
The -XX:+HeapDumpOnOutOfMemoryError option can be added to generate a heap dump on OutOfMemoryError. By default, the heap dump is created in a file called java_pid pid .hprof in the working directory of the VM, but we can set an alternative path using the JVM option -XX:HeapDumpPath=path.
Using a jmap & jcmd tool available with JDK
Find Java process ID
1. Windows Task Manager
2. Linux Below command
ps -ef | grep java
jmap -dump:live,format=b,file=heap.bin "pid"
heap dump file extension : .hprof
jmap -dump:live,format=b,file=heap.bin "pid"
"pid" can be replaced with the process id of the application.
Example : jmap -dump:live,format=b,file=C:\heapDump\heapDUmp.hprof 6336
Doanload link for VisualVm Application : visualvm.githu...
Негізгі бет How to take heap dump and Rread, analyze heap dump file by free software VisualVM | .hprof file
Пікірлер: 15