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

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

问题描述

是否可以在没有本地计算机上的Jmeter客户端的情况下在远程服务器上运行Jmeter. 我的意思是我可以在命令提示符下仅在远程计算机上运行jmeter.bat,以便它仅在远程服务器上运行测试并将结果存储在该服务器上,而在我的计算机上没有任何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天全站免登陆