161-java-profiling-detect
Skill2 starsChanged 9 months agoApache-2.0View on GitHub
Use when you need to set up Java application profiling to detect and measure performance issues — including automated async-profiler v4.0 setup, problem-driven profiling (CPU, memory, threading, GC, I/O), interactive profiling scripts, JFR integration with Java 25 (JEP 518, JEP 520), or collecting profiling data with flamegraphs and JFR recordings. Part of the skills-for-java project
2 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- jabrena/cursor-rules-javaedited, first seen Oct 17, 2026
- jabrena/plinthedited, first seen Oct 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- jabrena/plinth★ 46951% same
- jabrena/cursor-rules-java★ 46151% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- 014-agile-create-user-storySkill
- 020-planning-enhance-ai-plan-modeSkill
- 030-architecture-adr-generalSkill
- 031-architecture-adr-functional-requirementsSkill
- 032-architecture-adr-non-functional-requirementsSkill
- 033-architecture-diagramsSkill
- 110-java-maven-best-practicesSkill
- 111-java-maven-dependenciesSkill
- 112-java-maven-pluginsSkill
- 113-java-maven-documentationSkill
- 121-java-object-oriented-designSkill
- 122-java-type-designSkill
- 123-java-exception-handlingSkill
- 124-java-secure-codingSkill
- 125-java-concurrencySkill
- 128-java-genericsSkill
- 130-java-testing-strategiesSkill
- 131-java-testing-unit-testingSkill
- 132-java-testing-integration-testingSkill
- 133-java-testing-acceptance-testsSkill
- 141-java-refactoring-with-modern-featuresSkill
- 142-java-functional-programmingSkill
- 143-java-functional-exception-handlingSkill
- 144-java-data-oriented-programmingSkill
- 151-java-performance-jmeterSkill
- 162-java-profiling-analyzeSkill
- 163-java-profiling-refactorSkill
- 164-java-profiling-verifySkill
- 170-java-documentationSkill
- 180-java-observability-loggingSkill
- 200-agents-mdSkill
- 301-frameworks-spring-boot-coreSkill
- 302-frameworks-spring-boot-restSkill
- 312-frameworks-spring-data-jdbcSkill
- 321-frameworks-spring-boot-testing-unit-testsSkill
- 322-frameworks-spring-boot-testing-integration-testsSkill
- 323-frameworks-spring-boot-testing-acceptance-testsSkill
- 324-frameworks-spring-boot-testing-e2e-local-testsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Run application with profiling JVM flags (run-java-process-for-profiling.sh)
- Distinctive: line 22
Scope: Use the exact bash script templates without modification or interpretation.
- Distinctive: line 29
SETUP: Create profiler directory structure: profiler/scripts, profiler/results
- Distinctive: line 31
BEFORE APPLYING: Read the reference for exact script templates and setup instructions
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Java Profiling Workflow / Step 1 / Collect data to measure potential issues
Set up the Java profiling detection phase: automated environment setup with async-profiler v4.0, problem-driven interactive profiling scripts, and comprehensive data collection for CPU hotspots, memory leaks, lock contention, GC issues, and I/O bottlenecks. Uses JEP 518 (Cooperative Sampling) and JEP 520 (Method Timing) for reduced overhead.
What is covered in this Skill?
- Run application with profiling JVM flags (run-java-process-for-profiling.sh)
- Interactive profiling script (profiler/scripts/profile-java-process.sh) — copy exact template
- Directory structure: profiler/scripts/, profiler/results/, profiler/current/
- Automated OS/architecture detection and async-profiler download
- CPU, memory, lock, GC, I/O profiling modes
- Flamegraph and JFR output with timestamped results
Scope: Use the exact bash script templates without modification or interpretation.
Constraints
Copy bash scripts exactly from templates. Ensure JVM flags are applied for profiling compatibility. Verify Java processes are running before attaching profiler.
- CRITICAL: Copy the bash script templates exactly — do not modify, interpret, or enhance
- SETUP: Create profiler directory structure: profiler/scripts, profiler/results
- EXECUTABLE: Make scripts executable with chmod +x
- BEFORE APPLYING: Read the reference for exact script templates and setup instructions
When to use this skill
- Review Java code for profiling
- Add profiling support
Reference
For detailed guidance, examples, and constraints, see references/161-java-profiling-detect.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

