Jmeter 分发配置设置 [英] Jmeter Distribution Configuration setup

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

问题描述

完成以下步骤:主机 > 编辑 jmeter 文件并将远程主机 ip =10.21.4.199 和从机启动 jmeter-server.所有机器都在同一子网 &相同版本的java和jmeter.问题是: 1> 没有运行从机.可以提供步骤,请不要添加 jmeter 分发 pdf 的通用 pdf.2>脚本在没有远程主机的情况下运行,留空.3>是否必须在主机上运行脚本?

你能解释一下其他的意思吗:

#服务器使用的RMI端口(必须用相同的端口启动rmiregistry)服务器端口=443#server.rmi.port=1234

解决方案

windows machine 中按照以下步骤操作:

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

  2. 配置主机的jmeter.properties文件如下:

<块引用>

远程主机 - 逗号分隔

remote_hosts=xxx.xxx.xxx.xx1,xx.xxx.xxx.xx2(你的从机IP)

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

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

要做到这一点:运行->远程启动->检查从站的IP.(如果它在那里,您就可以远程运行测试了).

先决条件:

  1. 所有机器(主机和从机)必须在同一子网中.
  2. 防火墙必须为所有机器关闭.

  3. Java 和 JMeter 版本对于所有机器必须相同.

问题 1:

我很担心你错过了上面的第二点.所以请检查防火墙部分.可能是slave机器没有运行的原因.

问题 2:

你的第二个问题我不清楚.你在这里面临什么问题?请准确提及.

问题 3:

对于分布式测试,很明显在主机上运行脚本.

RMI Registry 充当 RMI 服务器和客户端之间的代理.请参阅Java RMI 简介.摘录:

<块引用>

图 1 显示了客户端在使用 RMI 时建立的连接.首先,客户端必须联系 RMI 注册中心,并请求服务的名称.开发人员 B 不知道 RMI 服务的确切位置,但他知道的足以联系开发人员 A 的注册表.这会将他指向他想要调用的服务的方向.

这样做是为了启动您的从机客户端机器进行通信.它将动态分配一个侦听端口以从客户端进行侦听.在您的情况下,port 443 是从 jmeter.properties 文件手动配置的.

done the following steps: Master machine > edit jmeter file and put the remote host ip =10.21.4.199 and slave machine start jmeter-server.All machine are same subnet & same version of java and jmeter. Problem are : 1> Not running slave machine.Can provide steps by steps, Plz dont add common pdf of jmeter distribution pdf. 2>Script running without having remote host, put blank. 3>Its compulsory to run script on master machine?

Could you explain some other point meaning :

# RMI port to be used by the server (must start rmiregistry with same port)
server_port=443 
#server.rmi.port=1234 

解决方案

Follow these steps from windows machine:

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

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

Remote Hosts - comma delimited

remote_hosts=xxx.xxx.xxx.xx1,xx.xxx.xxx.xx2 (IP of your slave machines)

  1. Start jmeter.bat from client (master) machine.

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

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

Pre-requisites:

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

  3. Java and JMeter versions must be same for all machines.

Problem 1:

I'm pretty much afraid on that you have missed the 2nd point above. So please check the Firewall section. It may be the cause of not running the slave machines.

Problem 2:

Your second problem is not clear to me. What problems are you facing here? Please mention precisely.

Problem 3:

For Distributed testing, it is obvious to run a script on the master machine.

RMI Registry acts a broker between RMI servers and the clients. See Introduction to Java RMI. Excerpt:

Figure 1 shows the connections made by the client when using RMI. Firstly, the client must contact an RMI registry, and request the name of the service. Developer B won't know the exact location of the RMI service, but he knows enough to contact Developer A's registry. This will point him in the direction of the service he wants to call.

And this is done to launch your Slave machine to communicate with the Client machine.It will dynamically assign a listening port to listen from Client. In your case, port 443 is configured manually from the jmeter.properties file.

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

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