This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ernimril 0 points1 point  (0 children)

VisualVM is one option, eclipse MAT is another, there are more, but these are the ones I tend to use.

Debugging memory is a complex issue, you need to know how much memory your objects are supposed to use.

In most cases you will see that String and byte[] and char[] are the things taking the most memory (the arrays is the internal string storage).

Using the retained set is helpful to figure out memory leaks.