← 返回命令列表

Linux command

jmeter 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Launch GUI

jmeter

Run test plan

jmeter -n -t [test.jmx]

Run with log output

jmeter -n -t [test.jmx] -l [results.jtl]

Generate HTML report

jmeter -n -t [test.jmx] -l [results.jtl] -e -o [report/]

Run with properties

jmeter -n -t [test.jmx] -J[threads=100]

Remote distributed test

jmeter -n -t [test.jmx] -R [server1,server2]

说明

JMeter is a load testing tool for web applications. It simulates heavy loads on servers to test performance. The tool supports HTTP, JDBC, FTP, and other protocols. It provides graphical test design and result analysis.

参数

-n
Non-GUI mode.
-t _FILE_
Test plan file (.jmx).
-l _FILE_
Log results file (.jtl).
-e
Generate report after test.
-o _DIR_
Report output directory.
-J_PROP=VALUE_
Set property.
-R _SERVERS_
Remote servers.
--help
Display help information.

FAQ

What is the jmeter command used for?

JMeter is a load testing tool for web applications. It simulates heavy loads on servers to test performance. The tool supports HTTP, JDBC, FTP, and other protocols. It provides graphical test design and result analysis.

How do I run a basic jmeter example?

Run `jmeter` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -n do in jmeter?

Non-GUI mode.