|
已经测试过,grinder.getProperties()内没有grinder.agents字段,所以取不到配置的代理数量。
以下是grinder.getProperties()内容输出:
2014-01-15 14:25:11,382 INFO Property: {grinder.duration=3660000, grinder.consolePort=12001, grinder.useConsole=true, grinder.security=false, ngrinder.etc.hosts=, grinder.runs=0, grinder.threads=3, grinder.reportTimesToConsole=true, grinder.jvm=java, grinder.dcrinstrumentation=true, grinder.test.id=test_157, grinder.processIncrement=0, grinder.script=testGrinder.py, grinder.numberOfOldLogs=10, grinder.logProcessStreams=true, grinder.consoleHost=10.1.21.202, grinder.sleepTimeFactor=1, grinder.debug.singleprocess=false, grinder.sleepTimeVariation=0.2, grinder.logDirectory=/home/test/.ngrinder_agent/log/test_157, grinder.user=test, grinder.processes=2, grinder.reportToConsole.interval=500, grinder.jvm.classpath=/home/test/ngrinder-core-3.2.1/./lib/ngrinder-dns-3.2.1.jar:/home/test/ngrinder-core-3.2.1/./lib/grinder-3.9.1-patch.jar:/home/test/.ngrinder_agent/file-store/test/current/:/home/test/.ngrinder_agent/file-store/test/current/lib, grinder.ignoreSampleCount=0}
|