- Download and install Jython
- Install Jython by running this command:
java -jar jython_installer-2.5.1.jar
How to Start The Grinder
- Create a grinder.properties file. (You could simply copy from grinder/examples/grinder.properties.)
- Set CLASSPATH to include grinder.jar
- Start the Console:
java net.grinder.Console
- For each test machine, do Steps 1 and 2, and then start the Agent process:
java net.grinder.Grinder [grinder.properties]
grinder.jvm.arguments: -Dpython.cachedir=/tmp
Use command line for developing
Edit grinder.properties with these settings:grinder.runs = 1 grinder.useConsole = false
TCPProxy
To find out the default proxy settings in TCPProxy:$ export CLASSPATH=/opt/grinder/lib/grinder.jar $ java net.grinder.TCPProxy 12/7/10 2:02:58 PM (tcpproxy): Initialising as an HTTP/HTTPS proxy with the parameters: Request filters: EchoFilter Response filters: EchoFilter Local address: localhost:8001 12/7/10 2:02:58 PM (tcpproxy): Engine initialised, listening on port 8001Now, set your browser to use proxy with the above port settings.
To start the TCPProxy Console:
$ java net.grinder.TCPProxy -console -http > grinder.py