List your favorite heap analysis tools (e.g. jprofiler, jmap, ...).
Let's keep it one tool per answer, with a short list of pros and cons for each tool.
I realize that similar questions have been asked about this before here on SO, but let me describe exactly what I need to do:
I have a set of tests which run a command line java application and I'd like …
I just had an interview, and I was asked to create a memory leak with Java.
Needless to say, I felt pretty dumb having no clue on how to even start creating one.
What would an example be?