简体   繁体   English

尝试在远程主机上运行包含websocket采样器的jmeter测试时引发异常

[英]Exception is thrown when tried to run a jmeter test having websocket sampler in it , on remote host

I am trying to run a jmeter test script which has a single websocket sampler.It works fine when i run it from single machine through java GUI or command line. 我正在尝试运行一个具有单个websocket采样器的jmeter测试脚本。当我通过Java GUI或命令行从单个计算机运行它时,它可以很好地工作。

But , When i try to run it on remote host (by running jmeter-server on other machine) then following exception is thrown. 但是,当我尝试在远程主机上运行它(通过在另一台机器上运行jmeter-server)时,会引发以下异常。

ERROR 错误

- jmeter.engine.ClientJMeterEngine: Error in rconfigure() method java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 
    java.lang.ClassNotFoundException: JMeter.plugins.functional.samplers.websocket.WebSocketSampler (no security manager: RMI class loader disabled) 
2016/10/06 07:03:20 INFO  - jmeter.engine.ClientJMeterEngine: Interrupting RMI Reaper 

Both Master/slave jmeter installations are having same version of jmeter(v3.0) and websocket plugin(v1.0.2). 主/从jmeter安装都具有相同版本的jmeter(v3.0)和websocket插件(v1.0.2)。

Any other http distributed test runs fine when it is run in same setup. 在同一设置中运行任何其他http分布式测试都可以正常运行。

According to the error message, it looks like the WebSocket plugin is missing on the remote slave. 根据错误消息,远程从站上似乎缺少WebSocket插件。 The main pre-requisite of distributed JMeter tests execution is having the same JMeter version with the same config, plugins, 3rd-party libraries, etc. on remove slaves as on the master. 分布式JMeter测试执行的主要先决条件是在移除从属服务器上具有与主服务器上相同的 JMeter版本,并具有相同的配置,插件,第三方库等。

So make sure you have identical setup on master and all the slaves, ie install the WebSocket Sampler to all the slaves. 因此,请确保您在主服务器和所有从服务器上都具有相同的设置,即,将WebSocket Sampler安装到所有从服务器上。

  • JMeter restart will be required to pick the plugins up 需要重启JMeter才能提取插件
  • The easiest way of installing JMeter Plugins and keeping them up-to-date is using JMeter Plugins Manager 安装JMeter插件并使它们保持最新的最简单方法是使用JMeter插件管理器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM