JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"),
Map.of(JMXConnector.CREDENTIALS,
new String[] { "user", "pass" }));
Following error occurs:
at java.management.rmi/javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:302)
Help is very appreciated!
After you have enabled the JMX agent, a client can use the following URL to access the monitoring service:
Earlier while starting the Java VM or Java application, you set the following property to allow the JMX client access to a local Java VM: