Jmeter распределенного тестирования VM - PullRequest
0 голосов
/ 23 мая 2019

Я пытаюсь запустить нагрузочный распределенный тест JMeter, используя Windows-машину в качестве сервера и виртуальную машину с Linux в качестве ведомого.

Ведущий и ведомый могут обмениваться данными (пинг между машинами работает).

В ведомом устройстве:

1 Я изменяю файл хоста для включения хоста и IP-адреса системы.

2 Я выполняю create-rmi-keystore.sh

3 Я выполняю jmeter-сервер

Ведомый показывает: Создан удаленный объект.

На сервере:

  1. Я изменяю jmeterФайл .properties (с добавлением IP-адреса ведомого).

  2. Я выполняю create-rmi-keystore.sh.

  3. Я выполняю jmeter.

  4. Выберите сценарий тестирования.

  5. Нажмите на Remote Start и выберите IP-адрес ведомого устройства.

Затем я получаю следующие сообщения об ошибках:

Отказано в соединении с хостом: 192.168.56.102;Вложенное исключение: java.net.ConnectException: соединение отклонено: connect

2019-05-23 17:37:05,284 ERROR o.a.j.e.DistributedRunner: Failed to create engine at 192.168.56.102
java.rmi.ConnectException: Connection refused to host: 192.168.56.102; nested exception is: 
    java.net.ConnectException: Connection refused: connect
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source) ~[?:?]
    at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) ~[?:?]
    at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) ~[?:?]
    at sun.rmi.server.UnicastRef.newCall(Unknown Source) ~[?:?]
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) ~[?:?]
    at org.apache.jmeter.engine.ClientJMeterEngine.getEngine(ClientJMeterEngine.java:72) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.engine.ClientJMeterEngine.<init>(ClientJMeterEngine.java:85) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.engine.DistributedRunner.createEngine(DistributedRunner.java:236) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.engine.DistributedRunner.getClientEngine(DistributedRunner.java:213) [ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.engine.DistributedRunner.init(DistributedRunner.java:93) [ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:80) [ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) [ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) [ApacheJMeter_core.jar:5.1.1 r1855137]
    at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:?]
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:?]
    at java.awt.EventQueue.access$600(Unknown Source) [?:?]
    at java.awt.EventQueue$4.run(Unknown Source) [?:?]
    at java.awt.EventQueue$4.run(Unknown Source) [?:?]
    at java.security.AccessController.doPrivileged(Native Method) [?:?]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:?]
    at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.run(Unknown Source) [?:?]
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method) ~[?:?]
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[?:?]
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[?:?]
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[?:?]
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[?:?]
    at java.net.PlainSocketImpl.connect(Unknown Source) ~[?:?]
    at java.net.SocksSocketImpl.connect(Unknown Source) ~[?:?]
    at java.net.Socket.connect(Unknown Source) ~[?:?]
    at sun.security.ssl.SSLSocketImpl.connect(Unknown Source) ~[?:?]
    at sun.security.ssl.SSLSocketImpl.<init>(Unknown Source) ~[?:?]
    at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source) ~[?:?]
    at org.apache.jmeter.rmi.SSLRMIClientSocketFactory.createSocket(SSLRMIClientSocketFactory.java:118) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
    ... 27 more
2019-05-23 17:39:40,758 INFO o.a.j.e.DistributedRunner: Failed to configure 192.168.56.102
2019-05-23 17:39:40,763 INFO o.a.j.e.DistributedRunner: Stopping remote engines
2019-05-23 17:39:40,763 INFO o.a.j.e.DistributedRunner: Remote engines have been stopped
2019-05-23 17:39:40,764 ERROR o.a.j.g.a.ActionRouter: Error processing org.apache.jmeter.gui.action.RemoteStart@fabb651
java.lang.RuntimeException: Following remote engines could not be configured:[192.168.56.102]
    at org.apache.jmeter.engine.DistributedRunner.init(DistributedRunner.java:112) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:80) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) [ApacheJMeter_core.jar:5.1.1 r1855137]
    at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) [ApacheJMeter_core.jar:5.1.1 r1855137]
    at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:?]
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:?]
    at java.awt.EventQueue.access$600(Unknown Source) [?:?]
    at java.awt.EventQueue$4.run(Unknown Source) [?:?]
    at java.awt.EventQueue$4.run(Unknown Source) [?:?]
    at java.security.AccessController.doPrivileged(Native Method) [?:?]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:?]
    at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:?]
    at java.awt.EventDispatchThread.run(Unknown Source) [?:?]

Я пропустил какой-либо шаг?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...