Jolokia - JMX on Capsaicin (Devoxx 2011)
Upcoming SlideShare
Loading in...5
×
 

Jolokia - JMX on Capsaicin (Devoxx 2011)

on

  • 28,650 views

"Jolokia - JMX on Capsaicin" was given as a "Tools in Action" talks at Devoxx 2011. For the full presentation, please go to parleys.com which includes a full recording of the talk.

"Jolokia - JMX on Capsaicin" was given as a "Tools in Action" talks at Devoxx 2011. For the full presentation, please go to parleys.com which includes a full recording of the talk.

Statistics

Views

Total Views
28,650
Views on SlideShare
2,494
Embed Views
26,156

Actions

Likes
1
Downloads
24
Comments
0

13 Embeds 26,156

http://www.jolokia.org 24134
http://jolokia.org 1965
http://translate.googleusercontent.com 35
http://webcache.googleusercontent.com 9
http://coderwall.com 3
http://webcache-exp-test.googleusercontent.com 3
http://www.jolokia.org. 1
http://honyaku.yahoofs.jp 1
http://www.jolokia.org&_=1342651948513 HTTP 1
http://131.253.14.66 1
http://www.slashdocs.com 1
http://www.jolokia.org&_=1391450771279 HTTP 1
https://www.google.com&_=1394458511959 HTTP 1
More...

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Jolokia - JMX on Capsaicin (Devoxx 2011) Jolokia - JMX on Capsaicin (Devoxx 2011) Presentation Transcript

  • Jolokia - JMX on CapsaicinRoland HußChili-HeadConSol* Software GmbH
  • Me and the Chili• Development and Operations @ ConSol – Large Java Projects – Remote Operations – Open Source Monitoring (Nagios) – www.consol.com• Open Source Author – roland@cpan.org – https://github.com/rhuss• Chili grower since 2005 2
  • JMX JSR-3 JSR-160The Problem
  • JMX Refresher• Java Management Extensions (JMX)• JSR-3 (2000)• Available out of the box since JDK 1.5• JMX-Operations: – Attribute reading – Attribute writing – Execution of operations – Notifications 4
  • JMX Architecture 5
  • JMX Remote API• JSR-160 (2003)• Problems: – Firewalls – Security is typically „all-or-nothing“ – Strongly typed – Java only 6
  • Jolokia Overview Features Clients Tools
  • How it works 8
  • Agents JEE OSGi Mule JVM 9
  • Tested on ...Tomcat 5.5, 6.0, 7.0 Felix 2.0, 3.2, 4.0 3.5, 3.6,Jetty 5.1, 6.1, 7.5, 8.0 Equinox 3.7, 3.8 M1 9.2.3, 10.0.2,Weblogic 10.3.5 Knopflerfish 3.2Websphere 6.1, 7.0, 8.0 Virgo 2.1, 3.0Glassfish 2.1, 3.0, 3.1 Spring dm Server 2.0JBoss 4.2, 5.1, 6.1, 7.0 Mule 2.2, 3.1, 3.2Jonas 4.10, 5.1, 5.2 ActiveMQ 5.5Geronimo 2.1, 2.2, 3.0 M1 Terracotta 3.2Camel 2.8 Hadoop 0.20 10
  • Quickstart 11
  • Request• HTTP GEThttp://localhost/jolokia/read/java.lang:type=Memory/HeapMemoryUsage• HTTP POST { "type":"read", "mbean":"java.lang:type=Memory", "attribute":"HeapMemoryUsage" } 12
  • Response{ "value": { "init": 134217728, "max": 532742144, "committed": 133365760, "used": 19046472 }, "status": 200, "timestamp": 1244839118, "request": { "mbean": "java.lang:type=Memory", "type": "read", "attribute": "HeapMemoryUsage" } } 13
  • Request Typesversion Version and server informationread Reading of attributeswrite Writing of attributesexec Execution of operationssearch Pattern search for MBeanslist MBean meta data 14
  • Bulk Requests [ { "type" : "read", "mbean" : "java.lang:type=Memory", "attribute" : "HeapMemoryUsage", "path" : "used", }, { "type" : "search", "mbean" : "*:type=Memory,*" } ] 15
  • JSR-160 Proxy 16
  • 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"} 17
  • 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 18
  • ClientsPerl Jmx4PerlJavascript JolokiaJava JolokiaPython Jmx4Py Jürgen HerrmannNode.js jolokia-client Joachim KainzGroovyScala You ?..... 19
  • Javascript Demo 20
  • Javascriptvar 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(); 21
  • Tools jmx4perl CLI Tool check_jmx4perl Nagios Plugin cacti_jmx4perl Cacti Plugin j4psh JMX Shell AccessJ iPhone Client Roo Addon Spring Roo Addon 22
  • j4psh 23
  • 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 24
  • Resources• www.jolokia.org • Reference-Manual: http://www.jolokia.org/reference/html/ • Forum: http://www.jolokia.org/forum.html• Blog • ConSol Labs: http://labs.consol.de• Github • https://github.com/rhuss/jolokia• T-Shirts ;-) • http://jolokia.spreadshirt.de• Twitter: @jolokia_jmx 25
  • Questions ?