To enable Java with JMX Agent we need to add the following line to the application VM arguments:
This will enable only local monitoring. To enable remote JMX connection we need to specify the port which the JMX server will listen for remote connection.
-Dcom.sun.management.jmxremote.port=9004 (or any other port number)
The JMX remote connection is secured by default. To disable the authentication or the SSL in the JMX remote connection:
much more information about monitoring and management using JMX can be found here