• 欢迎大家应聘,投递必回

  • master 和 slave 都已经设置为 server.rmi.ssl.disable=true。 主要问题是
    如果平台模式
    MASTER_JMETER_USE_SCRIPT_KEY 为 false,即在服务器进程内启动 Jmeter 压测 则会报下面的错误。但是选择 true,平台使用 jmeter 原生的,则无错误。

    看代码似乎 MASTER_JMETER_USE_SCRIPT_KEY 为 false 时,是自己实现的远端调用

  • 分布式执行时需要个问题。 调用 slave 机器时,如果模式
    MASTER_JMETER_USE_SCRIPT_KEY 为 false,即在服务器进程内启动 Jmeter 压测 则会报下面的错误。但是选择 true,使用 jmeter 原生的,则无错误。 缺失的 rmi_keystore.jks 我是应该生成后放在哪儿呢?。目前 slave 机器已经把 ssl 关闭了

    Set this if you don't want to use SSL for RMI

    server.rmi.ssl.disable=true

    报错信息
    2020-01-23 14:34:42.396 DEBUG 23260 --- [nio-8080-exec-9] i.r.m.t.d.StressTestSlaveDao.queryList : ==> Parameters: 1(Integer)
    2020-01-23 14:34:42.397 DEBUG 23260 --- [nio-8080-exec-9] i.r.m.t.d.StressTestSlaveDao.queryList : <== Total: 2
    2020-01-23 14:34:42.397 INFO 23260 --- [nio-8080-exec-9] o.a.jmeter.engine.DistributedRunner : Configuring remote engine: 172.21.141.50:1099
    Configuring remote engine: 172.21.141.50:1099
    2020-01-23 14:34:42.401 ERROR 23260 --- [nio-8080-exec-9] o.a.jmeter.engine.DistributedRunner : Failed to create engine at 172.21.141.50:1099

    java.rmi.ConnectIOException: Exception creating connection to: 172.21.141.50; nested exception is:
    java.io.FileNotFoundException: rmi_keystore.jks (No such file or directory)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:631)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:338)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:116)
    at org.apache.jmeter.engine.ClientJMeterEngine.getEngine(ClientJMeterEngine.java:72)
    at org.apache.jmeter.engine.ClientJMeterEngine.(ClientJMeterEngine.java:85)
    at io.renren.modules.test.jmeter.runner.LocalDistributedRunner.createEngine(LocalDistributedRunner.java:284)
    at io.renren.modules.test.jmeter.runner.LocalDistributedRunner.getClientEngine(LocalDistributedRunner.java:260)
    at io.renren.modules.test.jmeter.runner.LocalDistributedRunner.init(LocalDistributedRunner.java:140)
    at io.renren.modules.test.service.impl.StressTestFileServiceImpl.excuteJmeterRunLocal(StressTestFileServiceImpl.java:574)
    at io.renren.modules.test.service.impl.StressTestFileServiceImpl.runSingle(StressTestFileServiceImpl.java