2011-12-07 81 views
0

我接着此步驟配置http://jmeter.apache.org/usermanual/remote-test.html遠程測試觸發連接被拒絕錯誤

  • 的2臺機器上同一子網中。
  • 他們可以互相ping通
  • Windows防火牆被關閉

當我執行遠程啓動其給予「連接被拒絕」異常。

錯誤日誌

2011/12/07 13:39:37 ERROR - jmeter.gui.action.RemoteStart: Failed to initialise remote engine java.rmi.ConnectException: Connection refused to host: 198.168.137.4; nested exception is: 
    java.net.ConnectException: Connection timed out: connect 
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source) 
    at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) 
    at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) 
    at sun.rmi.server.UnicastRef.newCall(Unknown Source) 
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) 
    at java.rmi.Naming.lookup(Unknown Source) 
    at org.apache.jmeter.engine.ClientJMeterEngine.getEngine(ClientJMeterEngine.java:56) 
    at org.apache.jmeter.engine.ClientJMeterEngine.<init>(ClientJMeterEngine.java:69) 
    at org.apache.jmeter.gui.action.RemoteStart.doRemoteInit(RemoteStart.java:176) 
    at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:79) 
    at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:82) 
    at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42) 
    at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:61) 
    at java.awt.event.InvocationEvent.dispatch(Unknown Source) 
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) 
    at java.awt.EventQueue.access$000(Unknown Source) 
    at java.awt.EventQueue$3.run(Unknown Source) 
    at java.awt.EventQueue$3.run(Unknown Source) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(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) 
Caused by: java.net.ConnectException: Connection timed out: connect 
    at java.net.DualStackPlainSocketImpl.connect0(Native Method) 
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) 
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) 
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) 
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source) 
    at java.net.PlainSocketImpl.connect(Unknown Source) 
    at java.net.SocksSocketImpl.connect(Unknown Source) 
    at java.net.Socket.connect(Unknown Source) 
    at java.net.Socket.connect(Unknown Source) 
    at java.net.Socket.<init>(Unknown Source) 
    at java.net.Socket.<init>(Unknown Source) 
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source) 
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source) 
    ... 27 more 

回答

0

這個問題是解決

我的計算機連接到互聯網,當我開始JMeter的服務器其對公網IP的開始。

我的IP是192.168.137.1,但它的一些我的公網IP的開始,當我檢查我的公網IP谷歌是如何同

我停止上網,並重新開始JMeter的-serrver其工作

感謝

2

檢查你的其他機器(S)上的RMI端口是否被關閉? jMeter默認使用1099。 使用cmd並類型:

telnet [ip-address] 1099 

你,當然,開始在所有機器上的JMeter伺服器,對不對?