Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing JMX via HTTP alternatives

Tags:

java

jmx

We use MX4J to access JMX related operations/attributes via a web interface in the container itself. I wanted to know if there are alternatives that are available for it, since the last service release for MX4J was in 2006. I am basically looking to overcome limitations of MX4J in handling collections.

like image 590
Kilokahn Avatar asked Aug 16 '11 11:08

Kilokahn


People also ask

Does JMX use HTTP?

A JMX connector (client and server) that runs JMX through HTTP (or HTTPS).

How do I access JMX?

The console is accessible at http://localhost:8080/jmx-console. The JMX Console provides a raw view of the JMX MBeans which make up the server. They can provide a lot of information about the running server and allow you to modify its configuration, start and stop components and so on.

How do I run JMX locally?

A common way to enable local JMX access on these JVMs is to include the -Dcom. sun. management. jmxremote option on the command line when you start the JVM.

Does JMX use RMI?

By default, Java provides a remote JMX connector that is based on Java RMI (Remote Method Invocation).


1 Answers

I was experimenting once with Jolokia and looks pretty cool. From the webpage:

Jolokia is an HTTP/JSON bridge for remote JMX access.

Definitely give it a try. I used it successfully to create an AJAX/JavaScript dashboard displaying configurable JMX metrics on refreshable charts.

like image 189
Tomasz Nurkiewicz Avatar answered Nov 08 '22 10:11

Tomasz Nurkiewicz