You can use a profiler to inspect the JVM at run time.
jmap is a free basic CLI tool you can use to inspect a JVM. You can dump the heap, monitor live heap memory and get a simple histogram of objects using this tool.
jconsole is an upgrade to jmap with a GUI and more options.
VisualVM is a great free tool with way more options.
All the above tools are shipped free with a JDK distribution. You can find all of them in <JDK>/bin directory.
Also, you can use something heavyweight, like JProfiler as well.
You can use all these tools to connect to a running JVM and inspect the internals.
You can use a profiler to inspect the JVM at run time.
jmap is a free basic CLI tool you can use to inspect a JVM. You can dump the heap, monitor live heap memory and get a simple histogram of objects using this tool.
jconsole is an upgrade to jmap with a GUI and more options.
VisualVM is a great free tool with way more options.
All the above tools are shipped free with a JDK distribution. You can find all of them in <JDK>/bin directory.
You can use all these tools to connect to a running JVM and inspect the internals.
I'm checking out those as we speak, thank you very much!