Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Spicing up JMX with Jolokia (Devoxx 2014)

Slides for my "Tools-in-Action" Talk @ Devoxx 2014
The source code for the demos can be found at http://ro14nd.de/talks/2014/devoxx/jolokia-devoxx-2014-demo.tgz

The evolution of the Java Management Extensions (JMX) has stalled. Its fossilisation started some years ago but although JMX's future is more than unclear, it is still present in every JVM out there. However, JMX is not without severe issues in a polyglot world with regard to remote access. Jolokia is an open source project which provides an easy HTTP access to JMX not only for Java clients.

Originally intended as backbone for lightweight Nagios monitoring, Jolokia is nowadays used as a general purpose management API adopted by platforms such as ActiveMQ or Spring XD and used by HTML5 consoles like hawt.io.

This talk gives a detailed overview of Jolokia and its architecture. Jolokia uses an agent based approach where multiple variants with support for many platforms are available. In addition to standard JMX operations, Jolokia provides unique features like bulk requests or policy based security.

The live coding part in this presentation demonstrates how easily a custom browser based JMX-JavaScript client can be developed.

A live sneak preview of the forthcoming Jolokia 2.0 release finally completes this session.

  • Loggen Sie sich ein, um Kommentare anzuzeigen.

Spicing up JMX with Jolokia (Devoxx 2014)

  1. 1. Spicing up JMX with Jolokia Roland Huß ConSol* Software #Devoxx #jolokia @ro14nd
  2. 2. Roland Huß • Java Developer since ever • working in Munich @ ConSol* • Open Source ‣ Jolokia, Jmx4Perl and docker-maven-plugin ‣ www.jolokia.org ‣ labs.consol.de & ro14nd.de ‣ https://github.com/rhuss • Chili Pepper Grower #Devoxx #jolokia @ro14nd
  3. 3. JMX • Java Management Extensions (JSR-3, 2000) ‣ Management: Configuration, Lifecycle Operations, … ‣ Monitoring: Memory Size, Connection Pools …. • Available in every JVM • JSR-160: JMX Remote API ‣ Java only ‣ Crossing firewall boundaries is very hard (RMI) ‣ Security is "all-or-nothing" #Devoxx #jolokia @ro14nd
  4. 4. #Devoxx #jolokia @ro14nd
  5. 5. #Devoxx #jolokia @ro14nd
  6. 6. Agents JEE OSGi Mule JVM #Devoxx #jolokia @ro14nd
  7. 7. Who uses Jolokia ? • hawt.io ‣ General purpose HTML5 Web Console • ActiveMQ ‣ Leading Open Source Message Broker • fabric8 ‣ Open Source Integration Platform (part of JBoss Fuse) • Spring XD ‣ System for development of Big Data applications • Spring Boot #Devoxx #jolokia @ro14nd
  8. 8. Request Types read Reading of attributes write Writing of attributes exec Execution of operations search MBean search list MBean metadata version Version and server information #Devoxx #jolokia @ro14nd
  9. 9. Demo #Devoxx #jolokia @ro14nd
  10. 10. What else ? • Bulk Requests • JSR-160 Proxy • Fine grained security via XML policies • Tooling with Jmx4Perl • Client-Libs: ‣ JavaScript, Java, Perl (maintained by Jolokia & Jmx4Perl) ‣ Python, node.js, … (others) #Devoxx #jolokia @ro14nd
  11. 11. Jolokia 2.0 • JMX notifications ‣ Polling ‣ (WebSocket, Server Side Events, JMS,….) • Role based security • Modularization and Service Hooks ‣ RequestDispatcher (JMX, Spring, ZooKeeper, JNDI, ….) ‣ JSON serializer ‣ Restrictor #Devoxx #jolokia @ro14nd
  12. 12. Demo #Devoxx #jolokia @ro14nd
  13. 13. Questions ? http://www.jolokia.org #Devoxx #jolokia @ro14nd