test memory consumption of a java program with eclipse

user685275 picture user685275 · May 3, 2011 · Viewed 12.4k times · Source

Is there a plugin in eclipse that I could use to test who much memory has my just run program cost?

I am thinking there may be a button from the plugin after I run the program, I could click on it, and it shows me a graph of sort of the peak memory consumption of my program just now.

Answer

Mr. Nobody picture Mr. Nobody · May 3, 2011

I personally like VisualVM (tutorial), included with the latest JDK releases.