I am trying to get JMX monitors graph in Perfmon Metrics collector listener but getting all server metrics like CPU, Memory , network I/O except JMX. When I am going to apply this counter then getting the following error in perfmon agent:
2018-02-21 11:18:02.135 [kg.apc.p] (): Failed to get JMX Connector java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
Started Perfmon agent on default port 4711 which is applicable for jmx as per the below statement :
/*Since version 0.5.2 Server Agent has ability to monitor some JMX values inside Java Virtual Machine. ****To enable JMX monitoring you must start Java with some special properties enabled, like described here. Here's simplest (and not so secure) options to start Java with JMX enabled**:** java -Dcom.sun.management.jmxremote.port=4711 -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.ssl=false <other options>*/ Copied from github page.
Can anyone help me where i have to make the change.