What problem does it solve?
Diagnosing Java memory leaks and OOM failures from heap dumps is slow and error-prone: raw .hprof files are opaque, MAT reports are verbose, and connecting retained heap evidence back to actual project code requires deep JVM and framework knowledge. This Skill turns heap dump evidence into an actionable engineering diagnosis with a falsifiable root cause, a concrete fix, and a verification plan.
Core Features & Use Cases
- MAT Report Generation and Parsing: Locates .hprof files and MAT report zips, generates Leak Suspects, System Overview, and Top Components reports via the Eclipse MAT command line when only a raw dump exists, and extracts class histograms, dominator trees, thread overviews, and system properties from the HTML output.
- Retained Heap Root Cause Analysis: Identifies the true accumulation points (caches, schedulers, ThreadLocals, classloaders, queues) using retained heap and dominator paths rather than misleading shallow heap numbers.
- Code-Level Correlation: Searches the repository with ripgrep to map suspicious classes and frameworks back to Java/Kotlin/Spring/Quartz code, checking lifecycle symmetry (add/remove, schedule/delete, put/evict) and key identity consistency.
- Use Case: A service keeps hitting OOM and a 2.6 GB heap dump shows Quartz RAMJobStore dominating retained heap. The Skill traces the leak to a deleteJob call using the wrong job group, proposes a minimal fix, and defines restart and re-dump verification steps.
Quick Start
Analyze this heap dump or MAT report, find the retained memory root cause, correlate it with my project code, and give me a fix and verification plan in Chinese.