SlideShare a Scribd company logo
1 of 23
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.1
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.2
Java Mission Control
Roger Brinkley
Java Technology Ambassador
Oracle, Corp.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Agenda  Overview
 Installation and Usage
 Tools Walk Through
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4
OVERVIEW
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5
Purpose and Design
 The JDK profiling and diagnostics tools platform
 A tools suite for production use (fine in development too)
– Real time monitoring of key indicators and events
– Production time profiling and diagnostics
 Focus on low overhead
– Built into the JVM
– Already available runtime information
– High performance implementation
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6
Supported Platforms
Client Server
Windows Windows
Linux [x86,x64] Linux [x86,x64]
MacOSX [x64] MacOSX [x64]
Solaris [x86,x64,SPARC]
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7
Main Tools
 Management Console
– Most comprehensive JMX Consoles available
 Flight Recorder
– Built in, high performance JVM event recorder
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8
Origins
 Originally a JRockit JVM based tools suite (known as JRockit Mission Control)
– JRockit and HotSpot convergence => Java Mission Control
– For JRockit – use JRockit Mission Control 4.1
– For HotSpot – use Java Mission Control 5.2 or later
 Now distributed with the JDK in 7u40!
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9
INSTALLATION AND USAGE
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10
Java Mission Control installation
 JMC stand alone client
– Simply download and install the JDK (>=7u40)
– Same /bin directory as java, javac, etc
 Eclipse version
– Install from update site on OTN:
http://download.oracle.com/technology/products/missioncontrol/updatesites/base/5.2.0/eclipse/
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11
Experimental Plug-ins
 Already configured for use in the stand alone client
– Choose Help | Install New Software…
 Eclipse version
– Install from update site on OTN:
http://download.oracle.com/technology/products/missioncontrol/updatesites/experimental/5.2.0/eclipse/
 Note that experimental plug-ins are:
– Not as thoroughly tested
– Not supported
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.12
Starting the Java Mission Control Client
 Just double-click on the launcher in bin
– On Mac OSX it’s more complicated
 The logging settings file (in java.util.logging format) can be specified
from the preferences
– Window | Preferences | Java Mission Control | Logging Settings File
 More info on http://hirt.se/blog/?p=281
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.13
Starting the server
 To be able to access Flight Recorder
-XX:+UnlockCommercialFeatures -XX:+FlightRecorder
 There are plenty of command line options for controlling Java Flight
Recorder
– Some examples can be found on http://hirt.se/blog
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14
Starting the management agent
 Use the com.sun.management.jmxremote properties as normal
http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html
 Don’t forget – rmi registry and server port can be set to the same port –
good for tunneling! (>=7u4)
com.sun.management.jmxremote.rmi.port
 To broadcast the presence of the agent on the network (7u40):
com.sun.management.jmxremote.autodiscovery=true
com.sun.management.jdp.name=mygroup/MyJVM (optional)
 Sometimes RMI will get the hostname wrong:
java.rmi.server.hostname=<hostname client should use>
For remote access
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.15
TOOLS WALK-THROUGH
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.16
The JMX Console Highlights
 Simple but feature rich JMX Console
– JConsole on steroids
 Real time monitoring of key indicators
 Triggers
– Simple rules engine
– Developer/System Admin can provide custom actions
 Various experimental plug-ins
– Oracle Coherence
– JConsole plug-in support
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.17
JMX CONSOLE DEMO
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.18
Flight Recorder Highlights
 High performance JVM event recorder
 Produces binary recordings
 Recordings are self describing and self contained chunks
 Recordings contain runtime profile information
 The recorder can be running continuously
– Whenever something happens, the data can
be dumped
– A bit like having a ”black box” for the JVM
 More on Flight Recorder in another screencast
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.20
FLIGHT RECORDER DEMO
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.21
Experimental Plugins
 WLS Plug-in
 DTrace Plug-in
– Extended DScript language to produce self describing events
– Visualization similar to Flight Recorder
 JOverflow
– Tool for analyzing heap waste (empty/sparse collections)
– Uses hprof dumps
– First stab at using JavaFX for visualization in a JMC plug-in
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.22
Public Resources
Homepage:
http://oracle.com/missioncontrol
Forum:
http://forums.oracle.com/communitydeveloper/english/java/java_hotspot_virtual_ma
chine/java_mission_control
Twitter:
@javamissionctrl
@hirt
Blog:
http://hirt.se/blog
Facebook:
http://www.facebook.com/pages/Java-Mission-Control/275169442493206
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.23
The preceding material is intended to outline our
general product direction. It is intended for
information purposes only, and may not be
incorporated into any contract. It is not a commitment
to deliver any material, code, or functionality, and
should not be relied upon in making purchasing
decisions. The development, release, and timing of
any features or functionality described for Oracle’s
products remains at the sole discretion of Oracle.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.24

More Related Content

What's hot

Production Time Profiling Out of the Box
Production Time Profiling Out of the BoxProduction Time Profiling Out of the Box
Production Time Profiling Out of the BoxMarcus Hirt
 
HKG15-409: ARM Hibernation enablement on SoCs - a case study
HKG15-409: ARM Hibernation enablement on SoCs - a case studyHKG15-409: ARM Hibernation enablement on SoCs - a case study
HKG15-409: ARM Hibernation enablement on SoCs - a case studyLinaro
 
JMC/JFR: Kotlin spezial
JMC/JFR: Kotlin spezialJMC/JFR: Kotlin spezial
JMC/JFR: Kotlin spezialMiro Wengner
 
Android Boot Time Optimization
Android Boot Time OptimizationAndroid Boot Time Optimization
Android Boot Time OptimizationKan-Ru Chen
 
Java performance monitoring
Java performance monitoringJava performance monitoring
Java performance monitoringSimon Ritter
 
Software Profiling: Java Performance, Profiling and Flamegraphs
Software Profiling: Java Performance, Profiling and FlamegraphsSoftware Profiling: Java Performance, Profiling and Flamegraphs
Software Profiling: Java Performance, Profiling and FlamegraphsIsuru Perera
 
Android booting sequece and setup and debugging
Android booting sequece and setup and debuggingAndroid booting sequece and setup and debugging
Android booting sequece and setup and debuggingUtkarsh Mankad
 
XPDDS18: Intel Processor Trace for Xen Hypervisor - Luwei Kang, Intel
XPDDS18: Intel Processor Trace for Xen Hypervisor - Luwei Kang, IntelXPDDS18: Intel Processor Trace for Xen Hypervisor - Luwei Kang, Intel
XPDDS18: Intel Processor Trace for Xen Hypervisor - Luwei Kang, IntelThe Linux Foundation
 
Using Flame Graphs
Using Flame GraphsUsing Flame Graphs
Using Flame GraphsIsuru Perera
 
Towards "write once - run whenever possible" with Safety Critical Java af Ben...
Towards "write once - run whenever possible" with Safety Critical Java af Ben...Towards "write once - run whenever possible" with Safety Critical Java af Ben...
Towards "write once - run whenever possible" with Safety Critical Java af Ben...InfinIT - Innovationsnetværket for it
 
BUD17-209: Reliability, Availability, and Serviceability (RAS) on ARM64
BUD17-209: Reliability, Availability, and Serviceability (RAS) on ARM64 BUD17-209: Reliability, Availability, and Serviceability (RAS) on ARM64
BUD17-209: Reliability, Availability, and Serviceability (RAS) on ARM64 Linaro
 
XPDDS18: Real Time in XEN on ARM - Andrii Anisov, EPAM Systems Inc.
XPDDS18: Real Time in XEN on ARM - Andrii Anisov, EPAM Systems Inc.XPDDS18: Real Time in XEN on ARM - Andrii Anisov, EPAM Systems Inc.
XPDDS18: Real Time in XEN on ARM - Andrii Anisov, EPAM Systems Inc.The Linux Foundation
 
Best Practices for performance evaluation and diagnosis of Java Applications ...
Best Practices for performance evaluation and diagnosis of Java Applications ...Best Practices for performance evaluation and diagnosis of Java Applications ...
Best Practices for performance evaluation and diagnosis of Java Applications ...IndicThreads
 
Android Booting Sequence
Android Booting SequenceAndroid Booting Sequence
Android Booting SequenceJayanta Ghoshal
 
Workshop su Android Kernel Hacking
Workshop su Android Kernel HackingWorkshop su Android Kernel Hacking
Workshop su Android Kernel HackingDeveler S.r.l.
 
Fine-grained fault tolerance using device checkpoints
Fine-grained fault tolerance using device checkpointsFine-grained fault tolerance using device checkpoints
Fine-grained fault tolerance using device checkpointsasimkadav
 
BKK16-308 The tool called Auto-Tuned Optimization System (ATOS)
BKK16-308 The tool called Auto-Tuned Optimization System (ATOS)BKK16-308 The tool called Auto-Tuned Optimization System (ATOS)
BKK16-308 The tool called Auto-Tuned Optimization System (ATOS)Linaro
 

What's hot (20)

Production Time Profiling Out of the Box
Production Time Profiling Out of the BoxProduction Time Profiling Out of the Box
Production Time Profiling Out of the Box
 
HKG15-409: ARM Hibernation enablement on SoCs - a case study
HKG15-409: ARM Hibernation enablement on SoCs - a case studyHKG15-409: ARM Hibernation enablement on SoCs - a case study
HKG15-409: ARM Hibernation enablement on SoCs - a case study
 
JMC/JFR: Kotlin spezial
JMC/JFR: Kotlin spezialJMC/JFR: Kotlin spezial
JMC/JFR: Kotlin spezial
 
Android Boot Time Optimization
Android Boot Time OptimizationAndroid Boot Time Optimization
Android Boot Time Optimization
 
Java performance monitoring
Java performance monitoringJava performance monitoring
Java performance monitoring
 
Android Custom Kernel/ROM design
Android Custom Kernel/ROM designAndroid Custom Kernel/ROM design
Android Custom Kernel/ROM design
 
Software Profiling: Java Performance, Profiling and Flamegraphs
Software Profiling: Java Performance, Profiling and FlamegraphsSoftware Profiling: Java Performance, Profiling and Flamegraphs
Software Profiling: Java Performance, Profiling and Flamegraphs
 
Android booting sequece and setup and debugging
Android booting sequece and setup and debuggingAndroid booting sequece and setup and debugging
Android booting sequece and setup and debugging
 
XPDDS18: Intel Processor Trace for Xen Hypervisor - Luwei Kang, Intel
XPDDS18: Intel Processor Trace for Xen Hypervisor - Luwei Kang, IntelXPDDS18: Intel Processor Trace for Xen Hypervisor - Luwei Kang, Intel
XPDDS18: Intel Processor Trace for Xen Hypervisor - Luwei Kang, Intel
 
Android Debug
Android DebugAndroid Debug
Android Debug
 
Using Flame Graphs
Using Flame GraphsUsing Flame Graphs
Using Flame Graphs
 
Towards "write once - run whenever possible" with Safety Critical Java af Ben...
Towards "write once - run whenever possible" with Safety Critical Java af Ben...Towards "write once - run whenever possible" with Safety Critical Java af Ben...
Towards "write once - run whenever possible" with Safety Critical Java af Ben...
 
BUD17-209: Reliability, Availability, and Serviceability (RAS) on ARM64
BUD17-209: Reliability, Availability, and Serviceability (RAS) on ARM64 BUD17-209: Reliability, Availability, and Serviceability (RAS) on ARM64
BUD17-209: Reliability, Availability, and Serviceability (RAS) on ARM64
 
Android Internals
Android InternalsAndroid Internals
Android Internals
 
XPDDS18: Real Time in XEN on ARM - Andrii Anisov, EPAM Systems Inc.
XPDDS18: Real Time in XEN on ARM - Andrii Anisov, EPAM Systems Inc.XPDDS18: Real Time in XEN on ARM - Andrii Anisov, EPAM Systems Inc.
XPDDS18: Real Time in XEN on ARM - Andrii Anisov, EPAM Systems Inc.
 
Best Practices for performance evaluation and diagnosis of Java Applications ...
Best Practices for performance evaluation and diagnosis of Java Applications ...Best Practices for performance evaluation and diagnosis of Java Applications ...
Best Practices for performance evaluation and diagnosis of Java Applications ...
 
Android Booting Sequence
Android Booting SequenceAndroid Booting Sequence
Android Booting Sequence
 
Workshop su Android Kernel Hacking
Workshop su Android Kernel HackingWorkshop su Android Kernel Hacking
Workshop su Android Kernel Hacking
 
Fine-grained fault tolerance using device checkpoints
Fine-grained fault tolerance using device checkpointsFine-grained fault tolerance using device checkpoints
Fine-grained fault tolerance using device checkpoints
 
BKK16-308 The tool called Auto-Tuned Optimization System (ATOS)
BKK16-308 The tool called Auto-Tuned Optimization System (ATOS)BKK16-308 The tool called Auto-Tuned Optimization System (ATOS)
BKK16-308 The tool called Auto-Tuned Optimization System (ATOS)
 

Similar to Java Mission Control in Java SE 7U40

GlassFish in Production Environments
GlassFish in Production EnvironmentsGlassFish in Production Environments
GlassFish in Production EnvironmentsBruno Borges
 
JFR Java Flight REcorder CON10912_UsingJFR.pptx
JFR Java Flight REcorder CON10912_UsingJFR.pptxJFR Java Flight REcorder CON10912_UsingJFR.pptx
JFR Java Flight REcorder CON10912_UsingJFR.pptxssuser75e305
 
JDK 8 and JDK 8 Updates in OpenJDK
JDK 8 and JDK 8 Updates in OpenJDKJDK 8 and JDK 8 Updates in OpenJDK
JDK 8 and JDK 8 Updates in OpenJDKWolfgang Weigend
 
Ebs performance tuning session feb 13 2013---Presented by Oracle
Ebs performance tuning session  feb 13 2013---Presented by OracleEbs performance tuning session  feb 13 2013---Presented by Oracle
Ebs performance tuning session feb 13 2013---Presented by OracleAkash Pramanik
 
Java code coverage with JCov. Implementation details and use cases.
Java code coverage with JCov. Implementation details and use cases.Java code coverage with JCov. Implementation details and use cases.
Java code coverage with JCov. Implementation details and use cases.Alexandre (Shura) Iline
 
WebLogic Performance Monitoring - OFM Canberra July 2014
WebLogic Performance Monitoring - OFM Canberra July 2014WebLogic Performance Monitoring - OFM Canberra July 2014
WebLogic Performance Monitoring - OFM Canberra July 2014Joelith
 
Serverless Java: JJUG CCC 2019
Serverless Java: JJUG CCC 2019Serverless Java: JJUG CCC 2019
Serverless Java: JJUG CCC 2019Shaun Smith
 
JVMs in Containers - Best Practices
JVMs in Containers - Best PracticesJVMs in Containers - Best Practices
JVMs in Containers - Best PracticesDavid Delabassee
 
eXo Platform SEA - Play Framework Introduction
eXo Platform SEA - Play Framework IntroductioneXo Platform SEA - Play Framework Introduction
eXo Platform SEA - Play Framework Introductionvstorm83
 
Revisiting Silent: Installs Are they still useful?
Revisiting Silent: Installs Are they still useful?Revisiting Silent: Installs Are they still useful?
Revisiting Silent: Installs Are they still useful?Revelation Technologies
 
Programming-best practices( beginner) ADF_fusionapps
Programming-best practices( beginner) ADF_fusionappsProgramming-best practices( beginner) ADF_fusionapps
Programming-best practices( beginner) ADF_fusionappsBerry Clemens
 
Best Practices with IPS on Oracle Solaris 11
Best Practices with IPS on Oracle Solaris 11Best Practices with IPS on Oracle Solaris 11
Best Practices with IPS on Oracle Solaris 11glynnfoster
 
Con11257 schifano con11257-best practices for deploying highly scalable virtu...
Con11257 schifano con11257-best practices for deploying highly scalable virtu...Con11257 schifano con11257-best practices for deploying highly scalable virtu...
Con11257 schifano con11257-best practices for deploying highly scalable virtu...Berry Clemens
 
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...Courtney Llamas
 

Similar to Java Mission Control in Java SE 7U40 (20)

GlassFish in Production Environments
GlassFish in Production EnvironmentsGlassFish in Production Environments
GlassFish in Production Environments
 
JFR Java Flight REcorder CON10912_UsingJFR.pptx
JFR Java Flight REcorder CON10912_UsingJFR.pptxJFR Java Flight REcorder CON10912_UsingJFR.pptx
JFR Java Flight REcorder CON10912_UsingJFR.pptx
 
Java Cloud and Container Ready
Java Cloud and Container ReadyJava Cloud and Container Ready
Java Cloud and Container Ready
 
JDK 8 and JDK 8 Updates in OpenJDK
JDK 8 and JDK 8 Updates in OpenJDKJDK 8 and JDK 8 Updates in OpenJDK
JDK 8 and JDK 8 Updates in OpenJDK
 
Ebs performance tuning session feb 13 2013---Presented by Oracle
Ebs performance tuning session  feb 13 2013---Presented by OracleEbs performance tuning session  feb 13 2013---Presented by Oracle
Ebs performance tuning session feb 13 2013---Presented by Oracle
 
What's new in p2 (2009)?
What's new in p2 (2009)?What's new in p2 (2009)?
What's new in p2 (2009)?
 
Java code coverage with JCov. Implementation details and use cases.
Java code coverage with JCov. Implementation details and use cases.Java code coverage with JCov. Implementation details and use cases.
Java code coverage with JCov. Implementation details and use cases.
 
WebLogic Performance Monitoring - OFM Canberra July 2014
WebLogic Performance Monitoring - OFM Canberra July 2014WebLogic Performance Monitoring - OFM Canberra July 2014
WebLogic Performance Monitoring - OFM Canberra July 2014
 
Serverless Java: JJUG CCC 2019
Serverless Java: JJUG CCC 2019Serverless Java: JJUG CCC 2019
Serverless Java: JJUG CCC 2019
 
JVMs in Containers - Best Practices
JVMs in Containers - Best PracticesJVMs in Containers - Best Practices
JVMs in Containers - Best Practices
 
DesktopApps.pptx
DesktopApps.pptxDesktopApps.pptx
DesktopApps.pptx
 
Maximizing Oracle RAC Uptime
Maximizing Oracle RAC UptimeMaximizing Oracle RAC Uptime
Maximizing Oracle RAC Uptime
 
eXo Platform SEA - Play Framework Introduction
eXo Platform SEA - Play Framework IntroductioneXo Platform SEA - Play Framework Introduction
eXo Platform SEA - Play Framework Introduction
 
Revisiting Silent: Installs Are they still useful?
Revisiting Silent: Installs Are they still useful?Revisiting Silent: Installs Are they still useful?
Revisiting Silent: Installs Are they still useful?
 
JDK 10 Java Module System
JDK 10 Java Module SystemJDK 10 Java Module System
JDK 10 Java Module System
 
Programming-best practices( beginner) ADF_fusionapps
Programming-best practices( beginner) ADF_fusionappsProgramming-best practices( beginner) ADF_fusionapps
Programming-best practices( beginner) ADF_fusionapps
 
Best Practices with IPS on Oracle Solaris 11
Best Practices with IPS on Oracle Solaris 11Best Practices with IPS on Oracle Solaris 11
Best Practices with IPS on Oracle Solaris 11
 
Con11257 schifano con11257-best practices for deploying highly scalable virtu...
Con11257 schifano con11257-best practices for deploying highly scalable virtu...Con11257 schifano con11257-best practices for deploying highly scalable virtu...
Con11257 schifano con11257-best practices for deploying highly scalable virtu...
 
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
Zero to Manageability in 60 Minutes: Building a Solid Foundation for Oracle E...
 
Troubleshooting Tools In JDK
Troubleshooting Tools In JDKTroubleshooting Tools In JDK
Troubleshooting Tools In JDK
 

Recently uploaded

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Recently uploaded (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

Java Mission Control in Java SE 7U40

  • 1. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.1
  • 2. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.2 Java Mission Control Roger Brinkley Java Technology Ambassador Oracle, Corp.
  • 3. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Agenda  Overview  Installation and Usage  Tools Walk Through
  • 4. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4 OVERVIEW
  • 5. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5 Purpose and Design  The JDK profiling and diagnostics tools platform  A tools suite for production use (fine in development too) – Real time monitoring of key indicators and events – Production time profiling and diagnostics  Focus on low overhead – Built into the JVM – Already available runtime information – High performance implementation
  • 6. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6 Supported Platforms Client Server Windows Windows Linux [x86,x64] Linux [x86,x64] MacOSX [x64] MacOSX [x64] Solaris [x86,x64,SPARC]
  • 7. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7 Main Tools  Management Console – Most comprehensive JMX Consoles available  Flight Recorder – Built in, high performance JVM event recorder
  • 8. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8 Origins  Originally a JRockit JVM based tools suite (known as JRockit Mission Control) – JRockit and HotSpot convergence => Java Mission Control – For JRockit – use JRockit Mission Control 4.1 – For HotSpot – use Java Mission Control 5.2 or later  Now distributed with the JDK in 7u40!
  • 9. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9 INSTALLATION AND USAGE
  • 10. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10 Java Mission Control installation  JMC stand alone client – Simply download and install the JDK (>=7u40) – Same /bin directory as java, javac, etc  Eclipse version – Install from update site on OTN: http://download.oracle.com/technology/products/missioncontrol/updatesites/base/5.2.0/eclipse/
  • 11. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11 Experimental Plug-ins  Already configured for use in the stand alone client – Choose Help | Install New Software…  Eclipse version – Install from update site on OTN: http://download.oracle.com/technology/products/missioncontrol/updatesites/experimental/5.2.0/eclipse/  Note that experimental plug-ins are: – Not as thoroughly tested – Not supported
  • 12. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.12 Starting the Java Mission Control Client  Just double-click on the launcher in bin – On Mac OSX it’s more complicated  The logging settings file (in java.util.logging format) can be specified from the preferences – Window | Preferences | Java Mission Control | Logging Settings File  More info on http://hirt.se/blog/?p=281
  • 13. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.13 Starting the server  To be able to access Flight Recorder -XX:+UnlockCommercialFeatures -XX:+FlightRecorder  There are plenty of command line options for controlling Java Flight Recorder – Some examples can be found on http://hirt.se/blog
  • 14. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.14 Starting the management agent  Use the com.sun.management.jmxremote properties as normal http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html  Don’t forget – rmi registry and server port can be set to the same port – good for tunneling! (>=7u4) com.sun.management.jmxremote.rmi.port  To broadcast the presence of the agent on the network (7u40): com.sun.management.jmxremote.autodiscovery=true com.sun.management.jdp.name=mygroup/MyJVM (optional)  Sometimes RMI will get the hostname wrong: java.rmi.server.hostname=<hostname client should use> For remote access
  • 15. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.15 TOOLS WALK-THROUGH
  • 16. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.16 The JMX Console Highlights  Simple but feature rich JMX Console – JConsole on steroids  Real time monitoring of key indicators  Triggers – Simple rules engine – Developer/System Admin can provide custom actions  Various experimental plug-ins – Oracle Coherence – JConsole plug-in support
  • 17. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.17 JMX CONSOLE DEMO
  • 18. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.18 Flight Recorder Highlights  High performance JVM event recorder  Produces binary recordings  Recordings are self describing and self contained chunks  Recordings contain runtime profile information  The recorder can be running continuously – Whenever something happens, the data can be dumped – A bit like having a ”black box” for the JVM  More on Flight Recorder in another screencast
  • 19. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.20 FLIGHT RECORDER DEMO
  • 20. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.21 Experimental Plugins  WLS Plug-in  DTrace Plug-in – Extended DScript language to produce self describing events – Visualization similar to Flight Recorder  JOverflow – Tool for analyzing heap waste (empty/sparse collections) – Uses hprof dumps – First stab at using JavaFX for visualization in a JMC plug-in
  • 21. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.22 Public Resources Homepage: http://oracle.com/missioncontrol Forum: http://forums.oracle.com/communitydeveloper/english/java/java_hotspot_virtual_ma chine/java_mission_control Twitter: @javamissionctrl @hirt Blog: http://hirt.se/blog Facebook: http://www.facebook.com/pages/Java-Mission-Control/275169442493206
  • 22. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.23 The preceding material is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.
  • 23. Copyright © 2013, Oracle and/or its affiliates. All rights reserved.24