162-java-profiling-analyze

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Java Profiling Workflow / Step 2 / Analyze profiling data

Java Profiling工作流 / 步骤2 / 分析Profiling数据

Analyze profiling results systematically: inventory results (flamegraphs, JFR, GC logs, thread dumps), identify problems (memory leaks, CPU hotspots, threading issues), document findings using standardized templates (profiling-problem-analysis-YYYYMMDD.md, profiling-solutions-YYYYMMDD.md), prioritize using Impact/Effort scores, and correlate multiple profiling files for validation.
What is covered in this Skill?
  • Inventory: scan profiler/results/ for allocation-flamegraph, heatmap-cpu, memory-leak, *.jfr, *.log, *.txt
  • Problem identification: memory (leaks, excessive allocations, GC pressure), performance (CPU hotspots, blocking), threading (deadlocks, contention, pool saturation)
  • Documentation: docs/profiling-problem-analysis-YYYYMMDD.md, docs/profiling-solutions-YYYYMMDD.md
  • Prioritization: Impact (1–5) / Effort (1–5), focus on high priority first
  • Tools: async-profiler, JFR, JProfiler/YourKit, GCViewer, flamegraphs, heatmaps
Scope: Validate profiling results represent realistic load scenarios. Cross-reference multiple files. Include quantitative metrics.
系统性分析Profiling结果:整理结果(flamegraphs、JFR、GC日志、线程转储),识别问题(内存泄漏、CPU热点、线程问题),使用标准化模板(profiling-problem-analysis-YYYYMMDD.md、profiling-solutions-YYYYMMDD.md)记录发现,通过影响/投入评分确定优先级,并关联多个Profiling文件进行验证。
本Skill涵盖哪些内容?
  • 整理:扫描profiler/results/目录下的allocation-flamegraph、heatmap-cpu、memory-leak、.jfr、.log、*.txt文件
  • 问题识别:内存问题(泄漏、过度分配、GC压力)、性能问题(CPU热点、阻塞)、线程问题(死锁、竞争、池饱和)
  • 文档记录:生成docs/profiling-problem-analysis-YYYYMMDD.md、docs/profiling-solutions-YYYYMMDD.md文件
  • 优先级排序:影响(1–5)/投入(1–5),优先处理高优先级问题
  • 工具:async-profiler、JFR、JProfiler/YourKit、GCViewer、flamegraphs、heatmaps
范围: 验证Profiling结果是否代表真实负载场景。交叉引用多个文件。包含量化指标。

Constraints

约束条件

Validate profiling results represent realistic load before analysis. Document assumptions and limitations. Cross-reference multiple files.
  • VALIDATE: Ensure profiling results represent realistic load scenarios before analysis
  • DOCUMENT: Record assumptions and limitations in analysis reports
  • CROSS-REFERENCE: Use multiple profiling files to validate findings
  • BEFORE APPLYING: Read the reference for problem analysis and solutions templates
在分析前验证Profiling结果是否代表真实负载。记录分析中的假设和局限性。交叉引用多个文件。
  • VALIDATE:确保Profiling结果代表真实负载场景后再进行分析
  • DOCUMENT:在分析报告中记录假设和局限性
  • CROSS-REFERENCE:使用多个Profiling文件验证发现
  • BEFORE APPLYING:阅读问题分析和解决方案模板的参考文档

When to use this skill

何时使用本Skill

  • Analyze JFR profile
  • Analyze the profile
  • Analyze the performance
  • Analyze the memory
  • Analyze the threading
  • Analyze the GC
  • Analyze the profiling
  • Analyze the profiling
  • Performance analysis
  • 分析JFR Profile
  • 分析Profile
  • 分析性能
  • 分析内存
  • 分析线程
  • 分析GC
  • 分析Profiling
  • 分析Profiling
  • 性能分析

Reference

参考文档

For detailed guidance, examples, and constraints, see references/162-java-profiling-analyze.md.
如需详细指南、示例和约束条件,请查看references/162-java-profiling-analyze.md