• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

taking a heap dump

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try the excellent Memory Analyzer : http://www.eclipse.org/mat/
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good article! About capturing heap dumps, HeapHero is also good. It is free web tool. You have to upload your your application's heap dumps & review the beautiful reports instantly.
Staff note (Ganesh Patekar) :

Since you are new I corrected url tag in this post. Please go through https://coderanch.com/wiki/659571/BB-Tags ; Links section to know how to use it properly.

 
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic