Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

taking a heap dump

 
gaurav abbi
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, can anybody suggest me a way to take heap dump, which can help me to analyze and debug memory leak.
i tried jmap, but that information is not very helpful for me.
 
Henry Wong
author
Marshal
Pie
Posts: 20902
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Taking a heap dump, when you don't know what is leaking, is probably not the best course of action. It is probably better to use a profiler and monitor the heap as the application is leaking -- to see what grows.

Regardless, you still need to understand the application, in order to understand what should be growing and what shouldn't be growing.

Henry
 
rajesh bala
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try latest JProfiler. It is very stable and good at detecting memory leaks.

If you can't afford, you can check their trial version. However I would highly recommend it, if you can buy it.

I have used it and extremely happy with its stability compared to JProbe. I am not advertising or working in JProfiler.


~Rajesh.B
 
Fran├žois Mercier
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the excellent Memory Analyzer : http://www.eclipse.org/mat/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic