To use a JMX client, the setup you need to do first are:
- On the Target server where JVM runs, you need to enable JMX Agent for the JVM.
- On the local machine where you want to monitor your Java application from, you need a JMX client. For this post, I chose VisualVM.
- To prevent other JMX client from accessing your JMX Agent, you want to turn on authentication when your JMX client connects to your JMX Agent.