Presentation JMX on Capsaicin


Jolokia is a JMX-HTTP bridge giving an alternative to JSR-160 connectors. It is an agent based approach for remote JMX access with support for many platforms. In contrast to standard JSR 160 connectors, the communication between client and agent goes over HTTP where the payload is represented in JSON. In addition to basic JMX operations Jolokia enhances JMX remoting with unique features like bulk requests or fine grained security policies.
Published on: 2011-12-20T07:30:48.000Z
Channel: Devoxx'11 (all)
Tags: JMX
Speakers:

Roland Huss


Roland Huss is a software architect and head of research and development at ConSol Software, a consulting company focused on Java development and IT services. He has been developing in Java for fifteen years but never forgot his roots as system administrator and keeps a strong focus on manageability of his projects. Roland is the lead of the Jolokia project and loves chili pepper as much as JMX.


Slides:

Jolokia-JMX on Capsaicin


ding of attributes Writing of attributes Execution of operations Pattern search for MBeans

Me and the Chili


Request Types version read write exec search list Version and server information Reading of attributes Writing of attributes Execution of operations Pattern search for MBeans MBean meta data

JMX Refresher


Proxy Request { "attribute" : "HeapMemoryUsage", "mbean" : "java.lang:type=Memory", "target": { "url" : "service:jmx:iiop://websphere:2810/jndi/JMXConnector" "user" : "roland", "password" : "s!cr!t" }, "type" : "READ" }

JMX Refresher


Security

JMX Refresher


Security · JSR-160 Security ­ Java Security and JAAS · Jolokia Security

JMX Refresher


Security · JSR-160 Security ­ Java Security and JAAS · Jolokia Security ­ HTTP Security ­ Access Control with Policy Files

JMX Refresher


Security · JSR-160 Security ­ Java Security and JAAS · Jolokia Security ­ HTTP Security ­ Access Control with Policy Files · Network location

JMX Architecture


Security · JSR-160 Security ­ Java Security and JAAS · Jolokia Security ­ HTTP Security ­ Access Control with Policy Files · Network location · Command types

JMX Architecture


Security · JSR-160 Security ­ Java Security and JAAS · Jolokia Security ­ HTTP Security ­ Access Control with Policy Files · Network location · Command types · MBean, attribute and operation names

JMX Architecture


Clients

JMX Architecture


Clients Perl Javascript Jmx4Perl Jolokia

JMX Remote API


Clients Perl Javascript Java Python Jmx4Perl Jolokia Jolokia Jmx4Py Jürgen Herrmann

JMX Remote API


Clients Perl Javascript Java Python Node.js Groovy Scala ..... Jmx4Perl Jolokia Jolokia Jmx4Py jolokia-client Jürgen Herrmann Joachim Kainz You ?

JMX Remote API


Javascript Demo

JMX Remote API


Javascript var j4p = new Jolokia("/jolokia"); var data = []; function run() { j4p.request({ type: "read", mbean: "java.lang:type=Memory", attribute: "HeapMemoryUsage" }, { success: function(resp) { data.push([resp.timestamp,resp.value.used]); $.plot($("#memory"),[data],{ xaxis: { mode: "time" }}); setTimeout(run,1000); } }); } run();

JMX Remote API


Tools

Jolokia


Tools jmx4perl CLI Tool

How it works


Tools jmx4perl check_jmx4perl cacti_jmx4perl CLI Tool Nagios Plugin Cacti Plugin

How it works


Tools jmx4perl check_jmx4perl cacti_jmx4perl j4psh CLI Tool Nagios Plugin Cacti Plugin JMX Shell

Agents


Tools jmx4perl check_jmx4perl cacti_jmx4perl j4psh AccessJ CLI Tool Nagios Plugin Cacti Plugin JMX Shell iPhone Client

Agents


Tools jmx4perl check_jmx4perl cacti_jmx4perl j4psh AccessJ Roo Addon CLI Tool Nagios Plugin Cacti Plugin JMX Shell iPhone Client Spring Roo Addon

Agents


j4psh

Agents


Wrap up

Agents


Wrap up · JMX is good

Request



Request



Request



Request



Request



Request



Response



Request Types



Request Types



Bulk Request



JSR-160 Proxy



Proxy Request



Security



Security



Security



Security



Security



Security



Clients



Clients



Clients



Clients



Clients



Javascript



Tools



Tools



Tools



Tools



Tools



Tools



Wrap up



Wrap up



Wrap up



Wrap up



Resources



JMX


Bulk Requests [ { "type" : "read", "mbean" : "java.lang:type=Memory", "attribute" : "HeapMemoryUsage", "path" : "used", }, { "type" : "search", "mbean" : "*:type=Memory,*" } ]

Jolokia


Tools jmx4perl check_jmx4perl CLI Tool Nagios Plugin

Tested on


Wrap up · JMX is good · JSR-160 connectors are bad · Jolokia ... ... is a JSON-HTTP adaptor to JMX ... has unique features ... allows for non-Java clients ... has good tool support

Tested on



Request Types



Request Types



Request Types



Request Types



Clients



Clients



Clients



Javascript Demo



Demo



Tools



Tools