jmeter-load-testing
БесплатноБез исполняемых скриптовНе проверенUse when a project already uses Apache JMeter or needs JVM-native load testing: .jmx test plans with thread groups, HTTP samplers, assertions and listeners…
от testland★ 18 звёзд на GitHubОб этом скилле
jmeter-load-testing
Overview
Apache JMeter is the long-running JVM-native load-testing tool. Tests
are XML .jmx files authored in JMeter's GUI; CI runs them headless
via the jmeter CLI (jmeter-getstarted).
The official guidance is explicit:
"GUI mode should only be used for creating the test script, CLI mode (NON GUI) must be used for load testing." (jmeter-getstarted)
This skill covers the CLI / CI side. Authoring is GUI-driven and out of scope here - see the JMeter user manual for the Thread Group / HTTP Sampler / Assertion authoring flow.
When to use
- The project already has
.jmxtest plans. - The team is on the JVM and prefers JMeter's mature ecosystem (BlazeMeter, Taurus, plugin manager, distributed mode).
- A specific protocol is needed that JMeter has first-class support for: JDBC, JMS, MQTT, FTP, LDAP, SOAP - k6's plugin landscape is weaker for niche protocols.
If the team is starting fresh, evaluate
k6-load-testing (developer-friendly JS) or the Gatling (JVM DSL) and
Locust (Python) references in load-testing-overview before adopting
JMeter - XML authoring has a steep learning curve.
Install
JMeter requires Java 8 or higher with JAVA_HOME set. Download
the latest release from
jmeter.apache.org and extract - there
is no installer (jmeter-getstarted).
For Docker-based CI, official images are at apache/jmeter. Pin to
a specific tag rather than latest.
Running
Canonical CLI invocation
Per jmeter-getstarted:
jmeter -n -t test.jmx -l results.jtl
| Flag | Purpose |
|---|---|
-n |
Non-GUI mode. Required for load tests. |
-t |
Path to the .jmx test plan. |
-l |
Output file for raw sample results (JTL - CSV-shaped). |
With HTML dashboard
Per jmeter-getstarted:
jmeter -n -t test.jmx -l results.jtl -e -o report_folder
| Flag | Purpose |
|---|---|
-e |
Generate the HTML dashboard report automatically. |
-o |
Output folder (must be empty or non-existent). |
The dashboard shows percentiles, throughput, error rates, response- time graphs, and per-sampler breakdowns - the canonical JMeter output for human review.
Other useful flags
| Flag | Purpose |
|---|---|
-J<property>=<value> |
Override a JMeter property at the JVM level. |
-G<property>=<value> |
Override a property in distributed (remote) mode. |
-Jjmeter.save.saveservice.output_format=csv |
Force CSV JTL (vs. XML). |
-q <props-file> |
Additional properties file. |
-r |
Start the test on remote slaves (distributed mode). |
-X |
Exit JMeter when the test finishes. |
For multi-environment runs, parameterize the test plan with
${__P(api.base.url, default)} and override at the CLI:
jmeter -n -t orders.jmx -l results.jtl \
-Japi.base.url=https://staging.example.com \
-Japi.token=$API_TOKEN
Parsing results
The JTL file is the structured artifact for CI gating. Default JTL
columns (CSV): timeStamp, elapsed, label, responseCode,
responseMessage, threadName, dataType, success, failureMessage,
bytes, sentBytes, grpThreads, allThreads, URL, Latency,
IdleTime, Connect.
Quick-and-dirty pass/fail with awk:
# Count errors
awk -F',' 'NR>1 && $8=="false"' results.jtl | wc -l
# Compute mean response time
awk -F',' 'NR>1 { sum+=$2; n++ } END { print sum/n }' results.jtl
For richer parsing, use the JMeter HTML report's
statistics.json under the report folder - it contains the
percentiles per sampler in JSON form.
CI integration
# .github/workflows/jmeter.yml
name: load-test
on:
pull_request:
paths: ['tests/load/**.jmx']
schedule:
- cron: '0 4 * * *'
jobs:
jmeter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Run JMeter via Docker
env:
API_TOKEN: ${{ secrets.STAGING_API_TOKEN }}
run: |
docker run --rm \
-v "$PWD:/work" \
-w /work \
apache/jmeter \
-n -t tests/load/orders.jmx \
-l results.jtl \
-e -o report \
-Japi.token=$API_TOKEN \
-Japi.base.url=https://staging.example.com
Установить jmeter-load-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл jmeter-load-testing?
Use when a project already uses Apache JMeter or needs JVM-native load testing: .jmx test plans with thread groups, HTTP samplers, assertions and listeners, headless jmeter -n runs, the HTML dashboard and CI gates from JTL results.
Как установить скилл jmeter-load-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл jmeter-load-testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic