hnhellen 发表于 2012-7-11 15:59:37

急 请教jmeter分布测试不能启动远程服务

1、 一台控制器(192.168.2.102),其他的机器作为 代理。然后运行所有 代理 机器上的JMeter-server.bat文件—假定我们使用两台机器192.168.2.102和192.168.1.76作为 代理;
2、更改再找到控制器(192.168.2.102) jmeter.properties、“remote_hosts=192.168.2.102:1099,192.168.1.76:1099”
3、保存文件,并重新启动控制器机器上的JMeter,并进入启动 ->远程启动菜单项-》远程全部启动

结果192.168.2.102这个可以正常发送请求,而192.168.1.76则报如下错误;
ROR - jmeter.engine.ClientJMeterEngine: Failed to reset remote engine java.lang.IllegalStateException: The engine is not owned by this thread - cannot call reset
        at org.apache.jmeter.engine.RemoteJMeterEngineImpl.checkOwner(RemoteJMeterEngineImpl.java:224)
        at org.apache.jmeter.engine.RemoteJMeterEngineImpl.rreset(RemoteJMeterEngineImpl.java:164)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub.rreset(Unknown Source)
        at org.apache.jmeter.engine.ClientJMeterEngine.reset(ClientJMeterEngine.java:94)
        at org.apache.jmeter.gui.action.RemoteStart.doRemoteInit(RemoteStart.java:185)
        at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:87)
        at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:79)
        at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
        at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:61)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

hnhellen 发表于 2012-7-12 10:36:30

怎么没人来回答呀

hnhellen 发表于 2012-7-12 15:34:32

将两台PC 的IP 网段设置成一致192.168.2.102和192.168.2.76
将两台PC的jmeter版本改成一样的

就可以了
页: [1]
查看完整版本: 急 请教jmeter分布测试不能启动远程服务