jmeter - 远程服务器问题-分布式测试

标签 jmeter remote-server jmeter-4.0 distributed-testing

我有一台主机(192.xxx.x.xx)和两台从机(192.xxx.x.xx,192.xxx.x.xx)。

在主机 jmeter 属性文件中,我添加了两个从机 IP。 我分别在Slave Machine中运行server.bat文件。

但我的一台从属机器显示Port 1099 Busy错误。所以我将该特定 Salve Machine 的端口更改为 1098 并重新运行 server.bat 文件.

现在当我在Master Machine 中选择Remote Start ALL 命令时,更改端口的Slave Machine 不执行测试。但是另一台端口为1099的从机测试成功。

谁能告诉我另一台从机的确切问题。

最佳答案

您需要关注changing RMI port steps :

JMeter uses the standard RMI port 1099. It is possible to change this. For this to work successfully, all the following need to agree:

  • On the server, start rmiregistry using the new port number
  • On the server, start JMeter with the property server_port defined
  • On the client, update the remote_hosts property to include the new remote host:port settings

Since JMeter 2.1.1, the jmeter-server scripts provide support for changing the port. For example, assume you want to use port 1664 (perhaps 1099 is already used).

On Windows (in a DOS box)

C:\JMETER> SET SERVER_PORT=1664
C:\JMETER> JMETER-SERVER [other options]

On Unix:

$ SERVER_PORT=1664 jmeter-server [other options]

[N.B. use upper case for the environment variable] In both cases, the script starts rmiregistry on the specified port, and then starts JMeter in server mode, having defined the "server_port" property.

The chosen port will be logged in the server jmeter.log file (rmiregistry does not create a log file).

关于jmeter - 远程服务器问题-分布式测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56302364/

相关文章:

maven - 使用 Maven Cargo 插件将 Web 应用程序部署到外部 glassfish4 实例

linux - 在 Docker Jmeter 中,HTML 报告未生成

multithreading - 通过带有持续时间的线程使用同步计时器

java - 在 JMeter 的 BeanShell 采样器中将字符串解析为整数

java - 如何为 Jmeter Junit Sampler 创建更详细的结果消息传递

visual-studio-code - 代码 : Open file locally using Remote-SSH through integrated terminal

jmeter - 在 JMeter 中使用 UUID 发送数据

javascript - 如何在Jmeter中导入Cryptojs

jmeter - 为什么 JMeter 失败标记为 KO?

git - 无法推送到远程 GIT 存储库 -- "[...] does not appear to be a git repository"