jmeter-prometheus-plugin icon indicating copy to clipboard operation
jmeter-prometheus-plugin copied to clipboard

Error distributed JMeter load-testing

Open smehboub opened this issue 5 years ago • 1 comments

Hello,

FIrstly, thank you very much for your work.

When i run my loadtest with the prometheus listener only on Jmeter master, the plugin work well but when i use distributed loadtest JMeter by specifying 1 slave, i get these errors :

Error in rconfigure() method java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.lang.ClassNotFoundException: com.github.johrstrom.listener.PrometheusListener (no security manager: RMI class loader disabled)

When i remove the prometheus listener from my jmx loadtest file, my distributed loadtest JMeter by specifying 1 slave work well.

ENV: Debian GNU/Linux 9 (stretch) openjdk version "1.8.0_181" Jmeter 5.0 jmeter-prometheus-plugin-0.6.0.jar

command: jmeter -n -t mytest.jmx -Dserver.rmi.ssl.disable=true -R 10.0.0.3

PS : jmeter-prometheus-plugin-0.6.0.jar is avalaible on master and slaves (in ext/lib directory)

Can you help me, please ?

Thanks in advance. Rgs,

Sophian Mehboub

smehboub avatar Aug 17 '20 04:08 smehboub

Something like this java.lang.ClassNotFoundException: com.github.johrstrom.listener.PrometheusListener means the plugin is not installed on the minion instances.

You say it's available, so I guess you'd have to be sure to restart the minion or ensure it has the correct file permissions. Also I'm always confused on the difference between lib and lib/ext so maybe a symlink from one to other may work (can't hurt anyhow, I don't think...).

johrstrom avatar Aug 26 '20 19:08 johrstrom