From twit88.com: Use JMeter to Load Test RMI (Remote Method Invocation) Server

Posted Mon, 02/22/2010 - 20:13 by Cloud-Intelligence

Printer-friendly versionSend to friend

http://twit88.com/blog/2007/09/14/use-jmeter-to-load-test-rmi-remote-method-invocation-server/


Apache JMeter is a great tool for load testing. However, recently I need to load test a RMI application, and I could not find a JMeter Sampler to test the RMI application.

After some Googling, I gave up and ended up writing my own Sampler using the Java Request Sampler.

Below is the sample screen of the Java Request Sampler that I have written. I can specify the RMI server IP, port, binding name, and also the RMI connection pool size.

 

jmeter.jpg

You can download the code here.

JMeter RMI Sampler

In order to compile the code, you need the libraries in <JMeter Directory>\lib\ext folder.

After compiling the Java source files, package them into a Jar file, and put it under <JMeter Directory>\lib\ext folder, you can view the new sampler from the Java Request Sampler screen.