JMeter 4-无法在Windows 7中执行jmeter-server

我下载了最新的JMeter 4,

作为远程测试的一部分

要在远程节点上运行JMeter,请通过运行JMETER_HOME / bin / jmeter-server(unix)或JMETER_HOME /

bin / jmeter-server.bat(windows)脚本在要运行的所有计算机上启动JMeter服务器组件。

我尝试在Windows 7中执行jmeter-server.bat,并收到以下错误:

Server failed to start: java.rmi.server.ExportException: Listen failed on port:

0; nested exception is:

java.io.FileNotFoundException: rmi_keystore.jks (The system cannot find

the file specified)

An error occurred: Listen failed on port: 0; nested exception is:

java.io.FileNotFoundException: rmi_keystore.jks (The system cannot find

the file specified)

errorlevel=1

似乎文件rmi_keystore.jks丢失。(我在JMeter文件夹中找不到它)

在JMeter 3.3中,jmeter-server.bat正在运行。

我执行create-rmi-keystore.bat它后,创建了rmi_keystore.jks,但出现其他错误:

Server failed to start: java.rmi.server.ExportException: Listen failed on port:

0; nested exception is:

java.io.IOException: java.security.UnrecoverableKeyException: Cannot rec

over key

An error occurred: Listen failed on port: 0; nested exception is:

java.io.IOException: java.security.UnrecoverableKeyException: Cannot rec

over key

errorlevel=1

日志错误:

2018-02-11 12:09:13,916 ERROR o.a.j.e.DistributedRunner: Failed to create engine at 127.0.0.1

java.rmi.ConnectIOException: Exception creating connection to: 127.0.0.1; nested exception is:

java.io.IOException: java.security.UnrecoverableKeyException: Cannot recover key

at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source) ~[?:1.8.0_25]

at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) ~[?:1.8.0_25]

at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) ~[?:1.8.0_25]

at sun.rmi.server.UnicastRef.newCall(Unknown Source) ~[?:1.8.0_25]

at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) ~[?:1.8.0_25]

at org.apache.jmeter.engine.ClientJMeterEngine.getEngine(ClientJMeterEngine.java:70) ~[ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.engine.ClientJMeterEngine.<init>(ClientJMeterEngine.java:83) ~[ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.engine.DistributedRunner.createEngine(DistributedRunner.java:237) ~[ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.engine.DistributedRunner.getClientEngine(DistributedRunner.java:213) [ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.engine.DistributedRunner.init(DistributedRunner.java:93) [ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:80) [ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) [ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) [ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.gui.action.ActionRouter$$Lambda$63/2068100669.run(Unknown Source) [ApacheJMeter_core.jar:4.0 r1823414]

at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_25]

at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_25]

at java.awt.EventQueue.access$400(Unknown Source) [?:1.8.0_25]

at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_25]

at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_25]

at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_25]

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [?:1.8.0_25]

at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_25]

Caused by: java.io.IOException: java.security.UnrecoverableKeyException: Cannot recover key

at org.apache.jmeter.rmi.SSLRMIClientSocketFactory.createSocket(SSLRMIClientSocketFactory.java:110) ~[ApacheJMeter_core.jar:4.0 r1823414]

... 28 more

Caused by: java.security.UnrecoverableKeyException: Cannot recover key

at sun.security.provider.KeyProtector.recover(Unknown Source) ~[?:1.8.0_25]

at sun.security.provider.JavaKeyStore.engineGetKey(Unknown Source) ~[?:1.8.0_25]

at sun.security.provider.JavaKeyStore$JKS.engineGetKey(Unknown Source) ~[?:1.8.0_25]

at java.security.KeyStore.getKey(Unknown Source) ~[?:1.8.0_25]

at sun.security.ssl.SunX509KeyManagerImpl.<init>(Unknown Source) ~[?:1.8.0_25]

at sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(Unknown Source) ~[?:1.8.0_25]

at javax.net.ssl.KeyManagerFactory.init(Unknown Source) ~[?:1.8.0_25]

at org.apache.jmeter.rmi.SSLRMIClientSocketFactory.createSocket(SSLRMIClientSocketFactory.java:103) ~[ApacheJMeter_core.jar:4.0 r1823414]

... 28 more

2018-02-11 12:09:24,368 INFO o.a.j.e.DistributedRunner: Failed to configure 127.0.0.1

2018-02-11 12:09:24,369 INFO o.a.j.e.DistributedRunner: Stopping remote engines

2018-02-11 12:09:24,370 INFO o.a.j.e.DistributedRunner: Remote engines have been stopped

2018-02-11 12:09:24,370 ERROR o.a.j.g.a.ActionRouter: Error processing org.apache.jmeter.gui.action.RemoteStart@3249a1ce

java.lang.RuntimeException: Following remote engines could not be configured:[127.0.0.1]

at org.apache.jmeter.engine.DistributedRunner.init(DistributedRunner.java:112) ~[ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:80) ~[ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) [ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) [ApacheJMeter_core.jar:4.0 r1823414]

at org.apache.jmeter.gui.action.ActionRouter$$Lambda$63/2068100669.run(Unknown Source) [ApacheJMeter_core.jar:4.0 r1823414]

at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_25]

at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_25]

at java.awt.EventQueue.access$400(Unknown Source) [?:1.8.0_25]

at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_25]

at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_25]

at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_25]

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [?:1.8.0_25]

at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_25]

at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_25]

我试图更改server.rmi.ssl.keystore.password为写的密码,但出现了另一个错误

Server failed to start: java.rmi.server.ExportException: Listen failed on port:

0; nested exception is:

java.io.IOException: Keystore was tampered with, or password was incorre

ct

An error occurred: Listen failed on port: 0; nested exception is:

java.io.IOException: Keystore was tampered with, or password was incorre

ct

我尝试SET

SERVER_PORT=1099根据参考手动设置服务器端口,但仍尝试通过端口0进行监听

在Windows上,可以通过以下方式完成:SET SERVER_PORT =

回答:

要解决问题,您需要执行以下操作:

  • http://jmeter.apache.org/usermanual/remote-test.html#setup_ssl

问题是执行时第一个问题的答案 create-rmi-keystore

您的名字和姓氏是什么?

我应该已经回答了,rmi因为它是JMeter属性中的默认值server.rmi.ssl.keystore.alias

另外(与JMeter 3.3有所不同),我需要更改JMeter的属性,remote_hosts以便它使用我的主机名(从127.0.0.1更改)

这与:

  • https://bz.apache.org/bugzilla/show_bug.cgi?id=62039

以上是 JMeter 4-无法在Windows 7中执行jmeter-server 的全部内容, 来源链接: utcz.com/qa/418012.html

回到顶部