I am trying to get monitors graph in listener but getting all server metrics like CPU, Memory , network I/O except JMX.
When I am going to apply this then getting the following error in perfmon agent:

ERROR

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.



Source link https://sqa.stackexchange.com/questions/32203/how-to-get-jmx-counter-in-perfmon-metrics-collector

LEAVE A REPLY

Please enter your comment!
Please enter your name here