How To Use jPerfmeter with rpc.rstatd
erics, November 1st, 2011
Download the program from SourceForge: http://jperfmeter.sourceforge.net/
1 2 |
cd unzip jperfmeter-1.4.0.zip |
Create a shell wrapper called jperf:
1 2 |
#!/bin/sh java -classpath jperfmeter.jar:oncrpc.jar com.infineco.Perfmeter $* |
Here is how I invoke jperfmeter using a shell script called perfmon: perfmon script
1 2 3 |
#!/bin/sh # perfmon - calls jperfmeter (cd ~/jperfmeter-1.4.0; java -classpath jperfmeter.jar:oncrpc.jar com.infineco.Perfmeter $*) > /dev/null 2>&1 & |
HINT: rpc.rstatd and jPerfmeter communicate using RPC via UDP – be sure to open your firewall to allow this.