151-java-performance-jmeter
Automates JMeter setup and execution for Java services to test performance and load capacity.
Install
mkdir -p .claude/skills/151-java-performance-jmeter && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/19374" && unzip -o skill.zip -d .claude/skills/151-java-performance-jmeter && rm skill.zipInstalls to .claude/skills/151-java-performance-jmeter
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when you need to set up JMeter performance testing for a Java project — including creating the run-jmeter.sh script from the exact template, configuring load tests with loops, threads, and ramp-up, or running performance tests from the project root with custom or default settings. This should trigger for requests such as Improve the code with JMeter performance testing; Apply JMeter performance testing; Refactor the code with JMeter performance testing; Add JMeter support; Create a JMeter test plan for a Java service. Part of Plinth ToolkitKey capabilities
- →Create run-jmeter.sh script from template
- →Configure load test loops, threads, and ramp-up
- →Set up project structure for JMeter results
- →Apply executable permissions to scripts
- →Document CLI options and environment variables
How it works
The skill verifies JMeter installation, copies a verbatim template to the project root, and configures the required directory structure for load testing.
Inputs & outputs
When to use 151-java-performance-jmeter
- →Set up load testing for a Java service
- →Configure loop, thread, and ramp-up counts
- →Execute performance tests from the project root
About this skill
Run performance tests based on JMeter
Provide a complete JMeter performance testing solution by creating the run-jmeter.sh script from the exact template, making it executable, and configuring the project structure for load testing. Supports custom loops, threads, ramp-up, and environment variable overrides.
What is covered in this Skill?
- Create run-jmeter.sh in project root from the exact template (no modifications)
- Project structure: src/test/resources/jmeter/load-test.jmx, target/ for results
- Script options: -l (loops), -t (threads), -r (ramp-up), -g (GUI), -h (help)
- Environment variables: JMETER_LOOPS, JMETER_THREADS, JMETER_RAMP_UP
- Verify JMeter is installed and available before proceeding
Scope: Copy the script template verbatim. Do not modify, interpret, or enhance the template content.
Constraints
JMeter must be installed and available in PATH. If not available, show a message and exit. Use only the exact template for the run-jmeter.sh script.
- PREREQUISITE: Verify JMeter is installed and accessible via
jmeter --versionbefore creating the script - CRITICAL: Copy the run-jmeter.sh template exactly — do not modify, interpret, or enhance
- PERMISSION: Make the script executable with
chmod +x run-jmeter.sh - BEFORE APPLYING: Read the reference for the exact script template and usage instructions
- EDGE CASE: If request scope is ambiguous, stop and ask a clarifying question before applying changes
- EDGE CASE: If required inputs, files, or tooling are missing, report what is missing and ask whether to proceed with setup guidance
When to use this skill
- Improve the code with JMeter performance testing
- Apply JMeter performance testing
- Refactor the code with JMeter performance testing
- Add JMeter support
- Create a JMeter test plan for a Java service
Workflow
- Verify JMeter prerequisite
Check jmeter --version and stop with guidance if JMeter is not installed or not available in PATH.
- Read JMeter reference template
Read references/151-java-performance-jmeter.md and use the run-jmeter.sh template exactly as provided.
- Create script and project structure
Create run-jmeter.sh in project root, ensure required JMeter directories/files exist, and apply executable permission with chmod +x.
- Explain usage and environment overrides
Document CLI options (-l, -t, -r, -g, -h) and environment variable overrides (JMETER_LOOPS, JMETER_THREADS, JMETER_RAMP_UP).
Reference
For detailed guidance, examples, and constraints, see references/151-java-performance-jmeter.md.
When not to use it
- →Modifying the run-jmeter.sh template content
- →Interpreting or enhancing the template
- →When JMeter is not installed in PATH
Prerequisites
Limitations
- →Requires JMeter to be available in PATH
- →Template must be used exactly as provided
How it compares
This approach uses a standardized, immutable template for script generation rather than manual configuration.
Compared to similar skills
151-java-performance-jmeter side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| 151-java-performance-jmeter (this skill) | 0 | 17d | Review | Beginner |
| java-pro | 34 | 3mo | No flags | Advanced |
| springboot-tdd | 5 | 5mo | No flags | Intermediate |
| managing-api-cache | 2 | 10d | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jabrena
View all by jabrena →You might also like
java-pro
sickn33
Master Java 21+ with modern features like virtual threads, pattern matching, and Spring Boot 3.x. Expert in the latest Java ecosystem including GraalVM, Project Loom, and cloud-native patterns. Use PROACTIVELY for Java development, microservices architecture, or performance optimization.
springboot-tdd
affaan-m
Test-driven development for Spring Boot using JUnit 5, Mockito, MockMvc, Testcontainers, and JaCoCo. Use when adding features, fixing bugs, or refactoring.
managing-api-cache
jeremylongshore
Implement intelligent API response caching with Redis, Memcached, and CDN integration. Use when optimizing API performance with caching. Trigger with phrases like "add caching", "optimize API performance", or "implement cache layer".
unit-testing
TencentBlueKing
单元测试编写指南,涵盖 JUnit5/MockK 使用、测试命名规范、Mock 技巧、测试覆盖率要求、TDD 实践。当用户编写单元测试、Mock 依赖、提高测试覆盖率或进行测试驱动开发时使用。
springboot-verification
affaan-m
Verification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.
http-generate
spring-ai-alibaba
Generates HTTP request examples for Spring Boot Web interfaces according to task specification and saves them as .http files in module-generate.md directories