Reputation: 40
I am trying to setup an environment consisting of 10 agents, 1 process per agent, 10 threads per process.
The issue comes when I open 10 terminals/prompts and click on "start worker processes" in grinder after starting all the 10 agents. All the agents except for one or two, automatically exit stating this exception. I understand it is because all of them start simultaneously, but is there something I can do to make it work..?
Here is the exception
2013-10-31 14:36:41,469 INFO agent: communication shut down
2013-10-31 14:36:41,475 ERROR agent: Could not create file store directory
net.grinder.engine.agent.FileStore$FileStoreException: Could not create file store directory
at net.grinder.engine.agent.FileStore.getDirectory(FileStore.java:111) ~[grinder-core-3.11.jar:na]
at net.grinder.engine.agent.AgentImplementation.run(AgentImplementation.java:188) ~[grinder-core-3.11.jar:na]
at net.grinder.Grinder.run(Grinder.java:124) ~[grinder-core-3.11.jar:na]
at net.grinder.Grinder.main(Grinder.java:67) ~[grinder-core-3.11.jar:na]
Caused by: net.grinder.util.Directory$DirectoryException: Could not delete 'C:\Users\reddys.ADS\.\HYDCNU304BWC0-file-store\current\a360utility$py.clas
s'
at net.grinder.util.Directory.deleteContents(Directory.java:257) ~[grinder-core-3.11.jar:na]
at net.grinder.util.Directory.copyTo(Directory.java:473) ~[grinder-core-3.11.jar:na]
at net.grinder.engine.agent.FileStore.getDirectory(FileStore.java:101) ~[grinder-core-3.11.jar:na]
... 3 common frames omitted
Upvotes: 0
Views: 180
Reputation: 545
Try following settings in grinder.properties:
grinder.processes = 10
grinder.threads = 10
And the just start one agent using startAgent.cmd or .sh script.
Upvotes: 0