$ show openjdk/jmc
Java Mission Control (JMC) is an open-source tool for monitoring, managing, and profiling Java applications. It provides a graphical user interface built on Eclipse RCP for connecting to Java applications via JMX, analyzing Java Flight Recorder (JFR) data, and performing heap analysis. The application features a modular OSGi plugin architecture with core libraries for shared functionality (unit handling, flight recorder parsing, JMX common) and application plugins for specific features (flight recorder UI, JMX console, browser, agent). Key capabilities include real-time MBean monitoring, flight recording control and analysis, heap dump analysis, and custom rule-based diagnostics.
The LLM identified 3 files worth highlighting for reuse:
A comprehensive system for representing physical quantities, units, and conversions. Provides interfaces for formatting, parsing, and arithmetic operations on quantities. Used throughout JMC for displaying values with appropriate units (time, memory size, etc.). Can be extracted for use in any application requiring unit-aware calculations.
Core interfaces and abstractions for parsing Java Flight Recorder (JFR) binary files. Defines contracts for reading data chunks, handling different JFR versions, and extracting event data. Isolated from UI and agent concerns, making it reusable in other tools that need to process JFR data.
Data model representing Java objects and references in a heap dump. Includes classes for object headers, fields, arrays, and reference chains. Designed for efficient heap analysis tasks such as retaining size calculation and leak detection. Self-contained and could be used in other heap analysis tools.