Spicing up JMX with Jolokia 
Roland Huß 
ConSol* Software 
#Devoxx #jolokia @ro14nd
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
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
#Devoxx #jolokia @ro14nd
#Devoxx #jolokia @ro14nd
Agents 
JEE 
OSGi 
Mule 
JVM 
#Devoxx #jolokia @ro14nd
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
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
Demo 
#Devoxx #jolokia @ro14nd
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
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
Demo 
#Devoxx #jolokia @ro14nd
Questions ? 
http://www.jolokia.org 
#Devoxx #jolokia @ro14nd

Spicing up JMX with Jolokia (Devoxx 2014)

  • 1.
    Spicing up JMXwith Jolokia Roland Huß ConSol* Software #Devoxx #jolokia @ro14nd
  • 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.
    JMX • JavaManagement 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.
  • 5.
  • 6.
    Agents JEE OSGi Mule JVM #Devoxx #jolokia @ro14nd
  • 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.
    Request Types readReading 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.
  • 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.
    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.
  • 13.
    Questions ? http://www.jolokia.org #Devoxx #jolokia @ro14nd