Heap Status

>> Monday, December 7, 2009

If you wish to keep an eye on heap status of your eclipse instance then a quick way to do it is 'Heap Status' preference. You don't need any memory profiler for this.




This starts displaying the heap status in the status bar.



The garbage can icon is for running the Garbage Collection. It basically makes call to System.gc() and System.runFinalization()

3 comments:

Madhu 10:29 AM  

Thanks Ankur. Its helpful.

Anonymous,  1:27 PM  

Hi Ankur,

As you said the Heap Status is really helpful to track memory leaks for example.

Nevertheless, I think a memory profiler is still required (such as MemoryAnalyzer) to help fixing the memory leaks identified.

Regards,

Manu Selva
http://manuelselva.wordpress.com/

Ankur Sharma 2:25 PM  

What I mention is 'to keep an 'eye' on Heap. For that you don't a memory analyzer and this shall do. But when (god forbid) you have to 'fix' a memory issue then you need a memory analyzer.
While MAT can do a good a good postmortem analysis, YourKit is great tool for live memory mapping.

Post a Comment

  © Blogger template Werd by Ourblogtemplates.com 2009

Back to TOP