When trying to create a JMX agent in the JMX Management dashboard the error "connection failed " is received and when viewing the agent log an error message similar to the following is seen:
com.quest.jmxagent.ErrorHandler - Connection to MBeanServer failed: URL path must begin with /jndi/ or /stub/ or /ior/: /rmi://xxx.xxx.xxx.xxx:YYYY/karaf-tdisit1 java.net.MalformedURLException: URL path must begin with /jndi/ or /stub/ or /ior/: /rmi://xxx.xxx.xxx.xxx:YYYY/karaf-tdisit1
where xxx.xxx.xxx.xxx and YYYY are the IP address and port for remote JMX access the application server or JVM being monitored
However the URL appears to be correct:
service:jmx:rmi:///jndi/rmi://xxx.xxx.xxx.xxx:YYYY/karaf-tdisit1
CAUSE 1
The JMX URL is incorrect. .
CAUSE 2
The JMX agent cannot connect to the JMX port of the application server/JVM being monitored
RESOLUTION 1
Check the application server documentation or with the local JavaEE administrators to check what the correct JMX URL
RESOLUTION 2
Try changing the URL to service:jmx:rmi://xxx.xxx.xxx.xxx/jndi/rmi://xxx.xxx.xxx.xxx:YYYY/karaf-tdisit1
If this results in a connection refused message in the agent log the most likely explanation is that remote JMX access is not enabled in the application server/JVM or is using a different port. Please check with JavaEE administrators for this application server/JVM/
© ALL RIGHTS RESERVED. Feedback Nutzungsbedingungen Datenschutz Cookie Preference Center