运行测试时代理服务器报如下错误,不知道什么原因求解:
2013-05-10 02:00:01,683 INFO net.grinder.AgentDaemon: Worker process command line: java '-javaagent:/home/q/tools/ngrinder-core-3.0.3/lib/grinder-dcr-agent-3.9.1.jar' '-Dpython.path=/root/.ngrinder_agent/file-store/current/lib' '-Dpython.home=/root/.ngrinder_agent/file-store/current' '-Dngrinder.etc.hosts=127.0.0.1,localhost:127.0.0.1,xxx.xxx.com:xxx.xxx.xxx.xxx' '-Dsun.net.spi.nameservice.provider.1=dns,LocalManagedDns' -classpath '.:/home/q/tools/ngrinder-core-3.0.3/lib/logback-classic-1.0.0.jar:/home/q/tools/ngrinder-core-3.0.3/lib/dnsjava-2.1.1.jar:/home/q/tools/ngrinder-core-3.0.3/lib/grinder-httpclient-3.9.1.jar:/home/q/tools/ngrinder-core-3.0.3/lib/grinder-core-3.9.1.jar:/home/q/tools/ngrinder-core-3.0.3/lib/logback-core-1.0.0.jar:/home/q/tools/ngrinder-core-3.0.3/lib/picocontainer-2.13.6.jar:/home/q/tools/ngrinder-core-3.0.3/lib/jython-2.2.1.jar:/home/q/tools/ngrinder-core-3.0.3/lib/asm-3.2.jar:/home/q/tools/ngrinder-core-3.0.3/lib/jsr173-1.0.jar:/home/q/tools/ngrinder-core-3.0.3/lib/ngrinder-dns-3.0.3.jar:/home/q/tools/ngrinder-core-3.0.3/lib/xmlbeans-2.5.0.jar:/home/q/tools/ngrinder-core-3.0.3/lib/stax-api-1.0.1.jar:/home/q/tools/ngrinder-core-3.0.3/lib/grinder-dcr-agent-3.9.1.jar:/home/q/tools/ngrinder-core-3.0.3/lib/slf4j-api-1.6.4.jar:/home/q/tools/ngrinder-core-3.0.3/lib/grinder-xmlbeans-3.9.1.jar:/home/q/tools/ngrinder-core-3.0.3/lib/grinder-3.9.1.jar:/home/q/tools/ngrinder-core-3.0.3/lib/grinder-http-3.9.1.jar' net.grinder.engine.process.WorkerProcessEntryPoint 2013-05-10 02:00:01,689 ERROR net.grinder.AgentDaemon: Exception occurs in the agent message loop net.grinder.engine.common.EngineException: Could not start process at net.grinder.engine.agent.ProcessWorker.<init>(ProcessWorker.java:80) ~[grinder-core-3.9.1.jar:na] at net.grinder.engine.agent.ProcessWorkerFactory.createWorker(ProcessWorkerFactory.java:63) ~[grinder-core-3.9.1.jar:na] at net.grinder.engine.agent.AbstractWorkerFactory.create(AbstractWorkerFactory.java:74) ~[grinder-core-3.9.1.jar:na] at net.grinder.engine.agent.WorkerLauncher.startSomeWorkers(WorkerLauncher.java:103) ~[grinder-core-3.9.1.jar:na] at net.grinder.engine.agent.WorkerLauncher.startAllWorkers(WorkerLauncher.java:91) ~[grinder-core-3.9.1.jar:na] at net.grinder.engine.agent.AgentImplementationEx.run(AgentImplementationEx.java:285) ~[ngrinder-core-3.0.3.jar:na] at net.grinder.AgentDaemon$AgentThreadRunnable.run(AgentDaemon.java:146) [ngrinder-core-3.0.3.jar:na] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_20] Caused by: java.io.IOException: Cannot run program "java" (in directory "/root/.ngrinder_agent/file-store/current"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) ~[na:1.6.0_20] at net.grinder.engine.agent.ProcessWorker.<init>(ProcessWorker.java:76) ~[grinder-core-3.9.1.jar:na] ... 7 common frames omitted Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) ~[na:1.6.0_20] at java.lang.ProcessImpl.start(ProcessImpl.java:65) ~[na:1.6.0_20] at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ~[na:1.6.0_20] ... 8 common frames omitted 2013-05-10 02:00:01,691 INFO net.grinder.AgentDaemon: communication shut down 2013-05-10 02:00:01,693 INFO net.grinder.AgentDaemon: finished 2013-05-10 02:00:01,693 INFO agent controller: send log for test_9 |
你好,
请问是用哪个用户登录运行的 ngrinder-core-3.0.3 ? 从日志看 agent 目录 设置在 根目录下 “/root/.ngrinder_agent/” 请确认用此用户在agent 目录有操作权限。 |
Free forum by Nabble | Edit this page |