a short intro. to java mission control

Post on 18-Dec-2014

388 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

A link to the recorded session http://parleys.com/play/52e7dcdbe4b05c6cd82b9230/chapter17/about

TRANSCRIPT

A (very) Short Intro. To Java Mission Control

© Copyright Performize-IT LTD.

lifeyx

Haim Yadid - Performize-IT

More Info

Java Mission Control and Flight Recorder Demo (Series by OracleLearning @Youtube) Java One SessionOracle JRockit Mission Control Is Dead: Long Live Java Mission Control:http://www.youtube.com/watch?v=ExGzoYQqgkA

© Copyright Performize-IT LTD.

What is Mission Control?

A monitoring and profiling tool for production environments (also dev) JMC consists of two components Collection Infrastructure GUI

© Copyright Performize-IT LTD.CPU Profiling

Collection Infrastructure

Flight recorder A rotating buffer collecting profiling events Like A black box in an aircraft

© Copyright Performize-IT LTD.CPU Profiling

GUI

Based on Eclipse An Eclipse RCP MBean Server

Management and Monitoring console(JMX) Flight recorder (profiler)

A profiler based on the rotating buffer

© Copyright Performize-IT LTD.CPU Profiling

© Copyright Performize-IT LTD.

Origin

JMC was traditionally part of JRockit JVM Oracle owns JRockit and Hotspot Merge of JRockit into HotSpot Bundled as part of the HotSpot JDK from J7u40

CPU Profiling: Terminology

MBean Server

© Copyright Performize-IT LTD.

© Copyright Performize-IT LTD.

What is JMX

Java Management Extensions (JMX) JVM exposes MBeans (managed beans) Reporting state of JVM resources Which can be consumed by external tools:

JConsole VisualVm Mission Control

CPU Profiling: Terminology

© Copyright Performize-IT LTD.

MBean Server

Can connect to any JVM on the machine, Using attach mechanism (with attach mechanism limitations) Can connect to a remote JVM if remote JMX params A very flexible and customisable User Interface Enables Filtering Can persist monitoring data to a file A demo soon

CPU Profiling: Terminology

Flight Recorder

© Copyright Performize-IT LTD.

Flight Recorder

High performance event recorder Extremely low overhead

Records Event Types of event

Duration [start, end] Instant (exception) Requestable (polling)

© Copyright Performize-IT LTD.

Flight Recorder

A cyclic buffer holding latest history Continuous recording Free to use in development Requires commercial license in production Oops ….

© Copyright Performize-IT LTD.

Enablement

!

J7u40+ -XX:+UnlockCommercialFeatures -XX:+FlightRecorder

© Copyright Performize-IT LTD.

Start flight recording Wizard

Timed Continuous

© Copyright Performize-IT LTD.

Templates

Continuous (for Production) Profiling (for dev) Custom (select you events and frequency)

© Copyright Performize-IT LTD.

Recording dump

A file with extension .jfr Opened in JMC Has the following perspectives

General Memory Code Threads IO System Events

© Copyright Performize-IT LTD.

Recording dump

A file with extension .jfr Opened in JMC Has the following perspectives

General Memory Code Threads IO System Events

© Copyright Performize-IT LTD.

General Tab

Overview JVM Information System variables Recording

© Copyright Performize-IT LTD.

Memory Tab

Overview GC (3 views) Allocations Object Histogram

© Copyright Performize-IT LTD.

Code Tab

Overview Hot Methods Call Tree Exceptions Compilations Class Loading

© Copyright Performize-IT LTD.

Threads Tab

Overview Contention Thread dumps Latencies

© Copyright Performize-IT LTD.

IO Tab

Files Sockets

© Copyright Performize-IT LTD.

System Tab

Overview Processes Environment Variables

© Copyright Performize-IT LTD.

Events Tab

Raw events Logs

© Copyright Performize-IT LTD.

Demo Time

© Copyright Performize-IT LTD.

Thank You

www.performize-it.com

© Copyright Performize-IT LTD.

top related