aspose file tools*
The moose likes Performance and the fly likes Analyse large heap dump file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Analyse large heap dump file" Watch "Analyse large heap dump file" New topic
Author

Analyse large heap dump file

Prasad Babu
Ranch Hand

Joined: Jul 17, 2005
Posts: 57
Hi,

I have to analyse large heap dump file (3.6GB) from production environment. However if open it in eclipse mat, it is giving OutOfMemoryError. I tried to increase eclipse workbench java heap size as well. But it doesnt help. I also tried with visualVM as well. Can we split the heap dump file into small size? Or is there any way to set max heap dump file size for jvm options so that we collect reasonable size of heap dumps.

Thanks,
Prasad
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2054
    
  22

No, you need to give as much memory to MAT as the size of the file. That's just a guideline. MAT doesn't need as much memory, but it's good to have

This is the reason I don't use the MAT plugin to eclipse, and I prefer to use the standalone version instead. I want my eclipse to behave with other apps on my server. So, I have set my memory on eclipse to take a good bit of memory, just not all the memory. I change my MAT memory settings to match the head dump I want to analyze
Prasad Babu
Ranch Hand

Joined: Jul 17, 2005
Posts: 57
Hi Jayesh,

Thanks for the reply. But I cannot ask my manager or my IT team to increase memory each time it get large heap dumps. Any other suggestions / solution?

With regards,
Prasad
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2054
    
  22

Why do you need to ask your IT manager? If you are using the standalone version of MAT, You just change MemoryAnalyzer.ini and put in -Xmx option
Sekhar Mondal
Greenhorn

Joined: Apr 25, 2012
Posts: 4

Jayesh A Lalwani wrote:If you are using the standalone version of MAT, You just change MemoryAnalyzer.ini and put in -Xmx option


Jayesh is right. You only need to tweak the ini file.

You can also try out IBM HeapAnalyzer...it provides IBM, Solaris, and HP-UX Java 6.0 ascii/binary Java heap dump support...I'm not sure about other types of dump files.


hakuna matata!!!
Kaushik Yeleswarapu
Greenhorn

Joined: Aug 27, 2009
Posts: 5
I found these two to be very helpful, you could give them a try : TDA Thread dump analyzer and IBM Thread dump analyzer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Analyse large heap dump file
 
Similar Threads
How to get heap dump when Jboss is running and when a particular error happens.
Heap Memory Analysis - Distribution among Session, Stateful EJB and other objects
Java Heap dump Size and Resident Memory(RES) Size
Verbose GC analysis
Heap Dump in jdk1.4.2