Server
failed to start: java.rmi.server.ExportException in JMeter
Whenever you are trying to start Jmeter.server.bat file
from the bin folder, you would be having below error.
->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
->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
To resolve above error,
Solution: Update below settings in all master and salves machines,
uncomment below lines in jmeter.properties
file
and update server.rmi.ssl.disable=true
# To change the default port (1099)
used to access the server:
server.rmi.port=1234
# To use a specific port for the
JMeter server engine, define
# the following property before
starting the server:
#server.rmi.localport=4000
# The jmeter server creates by
default the RMI registry as part of the server process.
# To stop the server creating the
RMI registry:
#server.rmi.create=false
# Define the following property to cause JMeter to exit after the first
test
#server.exitaftertest=true
# Configuration of Secure RMI
connection
#
# 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
#
# Set this if you don't want to use
SSL for RMI
server.rmi.ssl.disable=true
And restart jmeter.server.bat
file in slaves’ machines and jmeter.bat file
in master machine.
Happy Testing!!!
Comments
Post a Comment