1

I have applied all the instructions to execute the distributed Testing for JMeter. But When I run as "Remote Start-XXX.XXX.XXX.XXX" Then I am getting "Exception creating connection: XXX.XXX.XXX.XXX; nested exception is: java.io.IOException: java.security.UnrecoverableKeyException: Cannot recover key".

Can anyone help me Why I am getting that exception?

Reference that I used: LINK

3 Answers3

1

Given you use JMeter 4.0 additionally you need to follow steps from Setting Up SSL User Manual Chapter


Alternatively if you don't want secure RMI communication between master and slave(s) you can add the next line to user.properties file

server.rmi.ssl.disable=true

or pass it via -J command-line argument like:

jmeter -Jserver.rmi.ssl.disable=true

The change has to be done on all engines (master and all the slaves)

References:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • jmeter -Jserver.rmi.ssl.disable=true. After this command, I am getting: An error occurred: No X11 DISPLAY variable was set, but this program performed an operation which requires it. – Am Anonymous Aug 20 '18 at 10:50
  • You're trying to start JMeter GUI on a Linux/Unix system which doesn't have X server installed or enabled or configured. You need to [run your JMeter test in non-GUI mode](https://www.blazemeter.com/blog/dear-abby-blazemeter-how-do-i-run-jmeter-non-gui-mode) like `jmeter -Jserver.rmi.ssl.disable=true -n -t test.jmx -Rslave1,slave2,slave3 -l result.jtl` – Dmitri T Aug 20 '18 at 10:56
1

This is how I solve the same problem as yours. Have a try, hope this can help:

when answering the question What is your first and last name?, you'll have to reply with rmi which is a corresponding value with server.rmi.ssl.keystore.alias in jmeter.propertise. Remember do NOT enter any custom value if u have not changed the server.rmi.ssl.keystore.alias in jmeter.propertise when u are trying to create a keystore.

Lau Real
  • 317
  • 1
  • 4
  • 15
0

In JMeter 4.0 you need to generate a keystore that will be used in distributed testing.

Follow this tutorial instead:

Pay particular attention to:

UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116
  • because you key was not generated, show logs of the keystore creation – UBIK LOAD PACK Aug 20 '18 at 10:57
  • Caused by: java.security.UnrecoverableKeyException: Cannot recover key at sun.security.provider.KeyProtector.recover(KeyProtector.java:328) ~[?:1.8.0_144] at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:146) ~[?:1.8.0_144] at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:56) ~[?:1.8.0_144]. Copied from log – Am Anonymous Aug 20 '18 at 11:14
  • I have tried this : ./create-rmi-keystore.sh and got this in last line := Copy the generated rmi_keystore.jks to jmeter/bin folder or reference it in property 'server.rmi.ssl.keystore.file' – Am Anonymous Aug 20 '18 at 11:15
  • what parameters did you enter when running "create-rmi-keystore.sh" , particularly what password ? did you change it ? if so you need to update settings – UBIK LOAD PACK Aug 20 '18 at 13:12
  • i put like name: rmi, state and so on and I put password as "changeit" – Am Anonymous Aug 21 '18 at 05:03