Bharat Sinha
Bharat Sinha

Reputation: 14363

Viewing live heap in Eclipse

Is it possible to see the heap of a program in eclipse itself while it is executing? Is there a plugin for that?

Upvotes: 1

Views: 7615

Answers (2)

afrin216
afrin216

Reputation: 2335

Eclipse does have a plugin called Eclipse Memory Analyzer (MAT). You can check it out here. I heard it is quite handy for heap analysis and fixing memory leaks in your program.

http://www.eclipse.org/mat/

Upvotes: 1

Edwin Dalorzo
Edwin Dalorzo

Reputation: 78589

I don't know if there is an Eclipse plugin, but if what matters is getting the information and not necessarily through Eclipse then you can do that with JVisualVM, and there are several plugins that provide all the details that you want.

One of its features is that you can make a heap dump.

Documentation says:

Take and browse heap dumps. When you need to browse contents of application memory or uncover a memory leak in your application, you'll find the built-in HeapWalker tool really handy. It can read files written in hprof format and is also able to browse heap dumps created by the JVM on an OutOfMemoryException.

Upvotes: 1

Related Questions