Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Analyse large heap dump file

 
Prasad Babu
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kaushik Yeleswarapu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found these two to be very helpful, you could give them a try : TDA Thread dump analyzer and IBM Thread dump analyzer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic