Fast

Fast Before praising Jolokia to be the fasted remote JMX solution on the world, it has to be confessed, that we don’t have any hard benchmarks yet. But this is something on the todo list.

Jolokia is especially a very fast JMX remote accessing solution for non-Java environments since for a client there is no need to start a JVM which needs some time to startup. E.g. most of the Nagios JMX plugins out there, require a local JVM installation and the plugins, which are implemented in Java, queries the MBeans via JSR-160 and prints out the results to standard output for a single check, opening a new connection for each request. For large Nagios installations which monitors hundreds of servers for several parameters this poses a performance problem. With Jolokia, it has been confirmed that it scales up very well in a Nagios environment with 500 servers monitoring about 10 parameters on each server every 5 minutes.

Especially bulk requests can speed up monitoring considerably. This unique feature, which is not available for JSR-160 connectors, allows for quering many parameters with a single server turnaround.

Jolokia uses the super fast JSON serialization library json-simple. Along with the fact that JSON itself is a very compact data format with small overhead compared to RMI, this adds to the good performance experience.

Note
json-simple is not a new library and since 2012 (last release) Java ecosystem was enriched with many JSON related libraries. We may review this subject, but for now, json-simple is really simple and sufficient (e.g., no complex data binding, thus no CVEs related to _gadgets and remote code execution).

In summary, all these facts indicate that the Jolokia is faster than standard JSR-160 connectors with communication of RMI. A benchmark is pending to put these statements on a solid ground.

Next