A short Intro. to Java Mission Control

1,346 views
1,039 views

Published on

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

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,346
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

A short Intro. to Java Mission Control

  1. 1. A (very) Short Intro. To Java Mission Control Haim Yadid - Performize-IT lifeyx © Copyright Performize-IT LTD.
  2. 2. More Info Java Mission Control and Flight Recorder Demo (Series by OracleLearning @Youtube) Java One Session
 Oracle JRockit Mission Control Is Dead: Long Live Java Mission Control:http://www.youtube.com/ watch?v=ExGzoYQqgkA © Copyright Performize-IT LTD.
  3. 3. What is Mission Control? A monitoring and profiling tool for production environments (also dev) JMC consists of two components Collection Infrastructure GUI CPU Profiling © Copyright Performize-IT LTD.
  4. 4. Collection Infrastructure Flight recorder A rotating buffer collecting profiling events Like A black box in an aircraft CPU Profiling © Copyright Performize-IT LTD.
  5. 5. GUI Based on Eclipse An Eclipse RCP MBean Server Management and Monitoring console(JMX) Flight recorder (profiler) A profiler based on the rotating buffer CPU Profiling © Copyright Performize-IT LTD.
  6. 6. 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 © Copyright Performize-IT LTD.
  7. 7. MBean Server © Copyright Performize-IT LTD.
  8. 8. 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.
  9. 9. 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 © Copyright Performize-IT LTD.
  10. 10. Flight Recorder © Copyright Performize-IT LTD.
  11. 11. 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.
  12. 12. 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.
  13. 13. Enablement ! J7u40+ -XX:+UnlockCommercialFeatures -XX:+FlightRecorder © Copyright Performize-IT LTD.
  14. 14. Start flight recording Wizard Timed Continuous © Copyright Performize-IT LTD.
  15. 15. Templates Continuous (for Production) Profiling (for dev) Custom (select you events and frequency) © Copyright Performize-IT LTD.
  16. 16. 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.
  17. 17. 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.
  18. 18. General Tab Overview JVM Information System variables Recording © Copyright Performize-IT LTD.
  19. 19. Memory Tab Overview GC (3 views) Allocations Object Histogram © Copyright Performize-IT LTD.
  20. 20. Code Tab Overview Hot Methods Call Tree Exceptions Compilations Class Loading © Copyright Performize-IT LTD.
  21. 21. Threads Tab Overview Contention Thread dumps Latencies © Copyright Performize-IT LTD.
  22. 22. IO Tab Files Sockets © Copyright Performize-IT LTD.
  23. 23. System Tab Overview Processes Environment Variables © Copyright Performize-IT LTD.
  24. 24. Events Tab Raw events Logs © Copyright Performize-IT LTD.
  25. 25. Demo Time © Copyright Performize-IT LTD.
  26. 26. Thank You
 
 www.performize-it.com © Copyright Performize-IT LTD.

×