Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open .hprof file [duplicate]

Tags:

java

I am running a Java application and faced an error Out of memory. .hprof file is generated. What do I use to analyse what's in the file? How to read that file? Any suggestion?

Thanks in Advance!!!

like image 826
gayathri Avatar asked Jul 28 '10 07:07

gayathri


People also ask

How do I open a .hprof file?

Opening a Heap Dump File If you have a heap dump file saved on your local system, you can open the file in Java VisualVM by choosing File > Load from the main menu. Java VisualVM can open heap dumps saved in the . hprof file format. When you open a saved heap dump, the heap dump opens as a tab in the main window.

What is a .hprof file?

hprof files are heap dump of the memory of java-based processes. Huge hprof files most commonly indicate out of memory issues about the related processes. These hprof files can be configured at startup to track and monitor memory performance issues.

How do I open a .hprof file in eclipse?

hprof ending has been created, you can open it via a double-click in Eclipse. If you used MAT to create the heap dump, it should be opened automatically. You may need to refresh your project (F5 on the project). Double-click the file and select the Leak Suspects Report.

Can .hprof files be deleted?

hprof files are java crash dumps. To analyze the cause of a crash at the time when the . hprof was generated, these files will be required by programs such as Eclipse Memory Analyzer (MAT) to review further. If there is no need for root cause analysis, these files can be deleted.


1 Answers

Memory Analyzer is the best tool I found for that. It's free and very efficient.

like image 144
Manuel Selva Avatar answered Oct 06 '22 09:10

Manuel Selva