Jmeter分布式测试 [英] Jmeter distributed testing

查看:164
本文介绍了Jmeter分布式测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JMeter分布式测试进行负载测试.问题是客户端启动后立即停止.不知道为什么.

I'm using JMeter distributed testing for load testing. The problem is the client gets stopped immediately after starting it. Don't know why.

有人可以帮助我解决这个问题吗?

Can anybody help me in this problem?

推荐答案

您可以按照以下步骤操作:

You can follow these steps:

  1. 从从属计算机仅启动jmeter-server.bat . (无需同时运行jmeter.bat和jmeter-server.bat)

  1. Start only jmeter-server.bat from the slave machines. (no need to run both jmeter.bat and jmeter-server.bat)

配置主计算机的 jmeter.properties 文件,如下所示:

Configure jmeter.properties file of the master machine as follows:

远程主机-逗号分隔

Remote Hosts - comma delimited

remote_hosts = xxx.xxx.xxx.xxx(您的从属计算机的IP)

remote_hosts=xxx.xxx.xxx.xxx (IP of your slave machines)

  1. 从客户端(主)计算机启动 jmeter.bat .

现在,您可以从GUI模式运行测试,以检查一切正常.

Now you can run your test from GUI mode to check everything is okay or not.

为此,请执行以下操作:运行->远程启动->检查从站的IP. (如果位于其中,则准备好远程运行测试).

To do this: Run->Remote start-> check the IP's of slaves. (if its in there you are ready to run your test remotely).

先决条件:

  1. 所有计算机(主计算机和从计算机)必须位于相同子网中.
  2. 必须关闭所有计算机的
  3. 防火墙.

  1. All the machines (both master and slaves) must be in the same subnet.
  2. Firewall must be turned off for all machines.

Java和JMeter版本必须相同.

有关更多详细信息,您应该阅读 JMeter分布式测试分步指南.

For more details, you should read JMeter Distributed Testing Step-by-step.

这篇关于Jmeter分布式测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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