Java Mission Control – How to run it

JMC is a tool which comes bundled with JDK since version 7u40 and it is an awesome tool for managing, monitoring, profiling, and troubleshooting Java applications. We can do memory analysis(heap dumps, Garbage collector analysis, hot methods, hot classes in terms percentage memory/time spent etc), threads analysis(finding deadlocks, thread dumps, per thread CPU usage etc), IO/Socket operations analysis(size/time taken for reading/writing to IO/socket) and many more things with very high level details.

You can goto JDK’s bin directory and run JMC. It will open a UI based console

It will list down all running Java processes. Expand any process and click on Flight recorder. You might get an error regarding the licensing of this product. You need to add Java arguments to enable this tool

-XX:+UnlockCommercialFeatures -XX:+FlightRecorder

Thisis how home page looks like. In upcoming articles we will cover each tab like Memory, Code, Threads, IO, Events etc

Uday Ogra

Connect with me at http://facebook.com/tendulkarogra and lets have some healthy discussion :)

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *