JMeter 4 - can't execute jmeter-server in windows 7

可紊 提交于 2019-11-29 06:37:53
user7294900

To solve issue, you need to follow:

The problem was the answer to first question when executing create-rmi-keystore

What is your first and last name?

I should have answered rmi as it the default value in JMeter's property server.rmi.ssl.keystore.alias

Also (difference from JMeter 3.3) I needed to change JMeter's property remote_hosts so that it uses my host name (change from 127.0.0.1)

This is related to :

Denys Boiko

Had the same problem.

To solve it you have several options:

  1. Set rmi-keystore password to changeit, as described in jmeter.properties:

    Password of Trust store
    server.rmi.ssl.truststore.password=changeit

  2. If using custom password - add it to user.properties on jmeter-server machine

  3. Disable SSL by passing -Jserver.rmi.ssl.disable=true

What worked for me (with JMeter 5.0) was an dedicated jmeter-server.properties file with this configurations:

# Type of keystore : JKS
server.rmi.ssl.keystore.type=JKS
#
# Keystore file that contains private key
server.rmi.ssl.keystore.file=rmi_keystore.jks
#
# Password of Keystore
server.rmi.ssl.keystore.password=changeit
#
# Key alias
server.rmi.ssl.keystore.alias=rmi
#
# Type of truststore : JKS
server.rmi.ssl.truststore.type=JKS
#
# Keystore file that contains certificate
server.rmi.ssl.truststore.file=rmi_keystore.jks
#
# Password of Trust store
server.rmi.ssl.truststore.password=changeit

I created a rmi_keystore.jks file with the create-rmi-keystore command in the JMeter bin folder. Then I started my server with jmeter-server -Gjmeter-server.properties. Also check then the log from the server to get the endpoint to connect your client with the server as user7294900 suggested.

Created remote object: UnicastServerRef2 [liveRef: [endpoint:[<this is your server>
Saksham Bahati

I faced all the above problems, until i found the solution to it, which is this:

  • The error java.security.UnrecoverableKeyException: Cannot recover key occurs when the keystore and keyEntry passwords are different.

  • To resolve this issue, you must remove all traces of the past certificate and request file.

  • You must generate a new keystore, keyEntry and CSR and specify the same password for the keystore and the keyEntry.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!