[Grinder-use] Console Service remote worker issues
Distributed load testing framework - Java, Jython, or Clojure scripts.
Brought to you by:
philipa
|
From: <ani...@co...> - 2013-09-21 22:25:28
|
I am trying to use the console REST API service from multiple remote machines. Here are the issues I face. If anyone has worked this out please advice.
Steps I carried out:
Start Console on one machine
1. java -classpath engine/grinder/lib/grinder.jar -Dgrinder.console.consoleHost=10.2.1.24 -Dgrinder.console.consolePort=8000 net.grinder.Console -headless
It starts saying - Started SelectChannelConnector@:6373
Start agent on remote machine
2. java -classpath engine/grinder/lib/grinder.jar -Dgrinder.consoleHost=10.2.1.24 -Dgrinder.consolePort=8000 net.grinder.Grinder
connected to console at /10.2.1.24:8000
2013-09-21 15:10:20,651 INFO agent: waiting for console signal
3. Start worker on remote machine
curl -H "Content-Type: application/json" -X POST http://10.2.1.24:8000/agents/start-workers -d '{"grinder.duration" : "600000","grinder.processes" : "1", "grinder.threads" : "5", "grinder.runs" : "0", "grinder.script" : "testrun.py" }'
Message: curl: (56) Recv failure: Connection reset by peer
Exception on Console:
2013-09-21 15:10:21,167 INFO console: Agent testmachine1 [Connected]
2013-09-21 15:13:45,828 ERROR console: Could not read address details
net.grinder.communication.CommunicationException: Could not read address details
Caused by: java.io.StreamCorruptedException: invalid stream header: 504F5354
This works only from the local machine with Console, Agent and Worker on the same machine.
Please let me know if anyone has been able to get console, agent and worker from remote machines. Need it urgently.
Thank you.
Anil
|