从命令行远程运行 Jmeter [英] Running Jmeter remotely from command line

查看:21
本文介绍了从命令行远程运行 Jmeter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在本地机器上没有 Jmeter 客户端的情况下在远程服务器上运行 Jmeter.我的意思是我可以从命令提示符在远程机器上运行 jmeter.bat,这样它就可以在远程服务器上运行测试并将结果存储在那里的 listener.jtl 文件中,而我的机器上没有任何 jmeter 客户端.

Is it possible to run Jmeter on remote server without having Jmeter client on local machine. I mean can I just run jmeter.bat on remote machine from command prompt, so that it just run tests on remote server and store results in listener.jtl file over there, without any jmeter client on my machine.

推荐答案

这里是链接:http://jmeter.apache.org/usermanual/remote-test.html.
只需浏览 Jmeter 网站上提供的文档即可.

Here is the link: http://jmeter.apache.org/usermanual/remote-test.html.
Just go through the documentation available in the Jmeter's website.

您提供的场景本身就是某种分布式测试",您希望每个测试人员从安装了 JMeter 的机器上执行负载测试.

The scenario given by you is some sort of "distributed testing" itself, where you want every tester to execute load testing from the machine where JMeter is installed.

为此,您必须在每台测试人员的机器上复制 JMeter,并输入您的 JMeter 服务器机器(主机).

For this purpose you must copy JMeter in each testers machine and make the entry of your JMeter server machine (Host Machine).

现在,当每个测试人员都运行 JMeter 时,他们将能够在 JMeter 主机上运行负载.

Now when every tester will run JMeter they will be able to run the load on the JMeter Host Machine.

jmeter -n -t script.jmx -l listener.jtl -R HostMachineIP

这篇关于从命令行远程运行 Jmeter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆