DEV Community

Raphael Miranda
Raphael Miranda

Posted on • Updated on

 

Flags to enable jmx

JMX is the xray of the Java world, it allows you to see threads and memory snapshots, debug and track unoptimized hotspots in your application. The JDK comes with the excellent tool, Mission Control that allows you to connect to a running JVM and collect insights from it.

Mission Control

To configure the JVM for this connection, use these arguments, e.g. in your JAVA_OPTS.

-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.authenticate=false 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.port=7199 

Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git