Calling / monitoring JVM via JMX from a client without java

I use Nagios for monitoring - and watch NPRE for various monitoring in this box. I have several java processes - it would be nice to โ€œlook into themโ€ through JMX, etc. I donโ€™t see a way to do this without starting the JVM and not connecting remotely?

Any ideas?

+3
source share
2 answers

I believe that you can connect to JMX services through RMI-IIOP , which I believe is CORBA for Java. I believe this means that you can use any COBRA client to connect to the Java RMI-IIOP service. Check out JBoss IIOP , which does what you want, I believe, for JBoss only.

Perhaps it would be easier to just port the JMX services you want to export using JAX-WS or JAX-RS (i.e. as web services)? You can then use plain ol HTTP to access what you want.

In fact, it seems that someone did just that ! I assume you would like to access something like:

  • http://<host>:<port>/rest/jmx/java.lang:type=Memory/NonHeapMemoryUsage/commited

The whole project is available at https://opendmk.dev.java.net/contributions/rest-adaptor/readme.html :

JMX

OpenDMK HTTP- JMX RestFul . , JMX NetBeans, .

( ?) https://ws-jmx-connector.dev.java.net/

+2

JMX Nagios jmx4perl - , Nagios Plugin check_jmx4perl. Jolokia, , JMX JSON/HTTP , , JSR-160. , REST, , 2008 ( jmx4perl 2009 ). BTW, JSR-262 " - Java (JMX)", , "" , .

+2
source

Source: https://habr.com/ru/post/1762390/


All Articles