问题:远程Jmeter服务器未将结果报告给主服务器。
描述: 使用VMware服务器我添加了几个托管各种JMeter客户端/服务器的Ubuntu服务器。我使用一个主设备和一个远程从设备设置了一个非常简单的分布式Jmeter环境。我有一个非常简单的测试计划,它使用FTP将单个文件传输到第三个FTP服务器。
Jmeter Master:192.168.19.219,Ubuntu 12.04,Java 1.7.0.51,Jmeter 2.11 Jmeter Slave:192.168.19.201,Ubuntu 12.04,Java 1.7.0.51,Jmeter 2.11 FTP服务器192.168.19.211,Win2008 R2
执行后,测试计划正常运行,文件上传并成功下载到FTP服务器和从FTP服务器下载。什么不起作用的结果。使用wireshark我确定没有结果被发送回主服务器。然后我检查了jmeter-server.log并注意到一些抱怨java.rmi.ConnectException的错误。它试图使用127.0.0.1,这显然不是正确的地址。我读了,发现要纠正这个,你必须设置param" java.rmi.server.hostname"。
所以在从服务器上我将jmeter-server配置文件编辑为从服务器的IP地址: RMI_HOST_DEF = -Djava.rmi.server.hostname = 192.168.19.201
jmeter-server.log(附件)显示正在拾取的java.rmi.server.hostname,所以我无法弄清楚为什么在jmeter-server.log中进一步向下抱怨127.0.0.1? 127.0.0.1来自哪里?为什么RMI不使用192.168.19.201?
的JMeter-server.log中:
2014/04/24 14:22:02 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US
2014/04/24 14:22:02 INFO - jmeter.JMeter: Loading user properties from: /home/tester/apache-jmeter-2.11/bin/user.properties
2014/04/24 14:22:02 INFO - jmeter.JMeter: Loading system properties from: /home/tester/apache-jmeter-2.11/bin/system.properties
2014/04/24 14:22:02 INFO - jmeter.JMeter: Setting System property: java.rmi.server.hostname=192.168.19.201
2014/04/24 14:22:02 INFO - jmeter.JMeter: Setting System property: server_port=1099
2014/04/24 14:22:02 INFO - jmeter.JMeter: Copyright (c) 1998-2014 The Apache Software Foundation
2014/04/24 14:22:02 INFO - jmeter.JMeter: Version 2.11 r1554548
2014/04/24 14:22:02 INFO - jmeter.JMeter: java.version=1.7.0_51
2014/04/24 14:22:02 INFO - jmeter.JMeter: java.vm.name=OpenJDK Server VM
2014/04/24 14:22:02 INFO - jmeter.JMeter: os.name=Linux
2014/04/24 14:22:02 INFO - jmeter.JMeter: os.arch=i386
2014/04/24 14:22:02 INFO - jmeter.JMeter: os.version=3.2.0-60-generic
2014/04/24 14:22:02 INFO - jmeter.JMeter: file.encoding=UTF-8
2014/04/24 14:22:02 INFO - jmeter.JMeter: Default Locale=English (United States)
2014/04/24 14:22:02 INFO - jmeter.JMeter: JMeter Locale=English (United States)
2014/04/24 14:22:02 INFO - jmeter.JMeter: JMeterHome=/home/tester/apache-jmeter-2.11
2014/04/24 14:22:02 INFO - jmeter.JMeter: user.dir =/home/tester/apache-jmeter-2.11/bin
2014/04/24 14:22:02 INFO - jmeter.JMeter: PWD =/home/tester/apache-jmeter-2.11/bin
2014/04/24 14:22:02 INFO - jmeter.JMeter: IP: 127.0.0.1 Name: LoadRunner2 FullName: localhost
2014/04/24 14:22:02 INFO - jmeter.engine.RemoteJMeterEngineImpl: Starting backing engine on 1099
2014/04/24 14:22:02 INFO - jmeter.engine.RemoteJMeterEngineImpl: Local IP address=192.168.19.201
2014/04/24 14:22:02 INFO - jmeter.engine.RemoteJMeterEngineImpl: IP address is a site-local address; this may cause problems with remote access.
Can be overridden by defining the system property 'java.rmi.server.hostname' - see jmeter-server script file
2014/04/24 14:22:02 INFO - jmeter.engine.RemoteJMeterEngineImpl: Creating RMI registry (server.rmi.create=true)
2014/04/24 14:22:02 INFO - jmeter.engine.RemoteJMeterEngineImpl: Bound to registry on port 1099
2014/04/24 14:25:15 WARN - jmeter.engine.RemoteJMeterEngineImpl: Backing engine is null, ignoring reset
2014/04/24 14:25:15 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2014/04/24 14:25:15 INFO - jmeter.samplers.BatchSampleSender: Using batching for this run. Thresholds: num=100, time=60000
2014/04/24 14:25:15 INFO - jmeter.samplers.DataStrippingSampleSender: Using DataStrippingSampleSender for this run
2014/04/24 14:25:15 INFO - jmeter.samplers.BatchSampleSender: Using batching for this run. Thresholds: num=100, time=60000
2014/04/24 14:25:15 INFO - jmeter.samplers.DataStrippingSampleSender: Using DataStrippingSampleSender for this run
2014/04/24 14:25:15 INFO - jmeter.samplers.BatchSampleSender: Using batching for this run. Thresholds: num=100, time=60000
2014/04/24 14:25:15 INFO - jmeter.samplers.DataStrippingSampleSender: Using DataStrippingSampleSender for this run
2014/04/24 14:25:15 INFO - jmeter.engine.RemoteJMeterEngineImpl: Creating JMeter engine on host 192.168.19.201 base '.'
2014/04/24 14:25:15 INFO - jmeter.engine.RemoteJMeterEngineImpl: Remote client host: 192.168.19.219
2014/04/24 14:25:15 INFO - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version
2014/04/24 14:25:15 INFO - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false
2014/04/24 14:25:15 INFO - jmeter.services.FileServer: Default base='/home/tester/apache-jmeter-2.11/bin'
2014/04/24 14:25:15 INFO - jmeter.services.FileServer: Set new base='.'
2014/04/24 14:25:15 INFO - jmeter.engine.StandardJMeterEngine: Applying properties {}
2014/04/24 14:25:15 INFO - jmeter.engine.RemoteJMeterEngineImpl: Running test
2014/04/24 14:25:15 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2014/04/24 14:25:15 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2014/04/24 14:25:15 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.'
2014/04/24 14:25:15 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.'
2014/04/24 14:25:16 ERROR - jmeter.samplers.RemoteListenerWrapper: testStarted(host) java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at org.apache.jmeter.samplers.RemoteSampleListenerImpl_Stub.testStarted(Unknown Source)
at org.apache.jmeter.samplers.RemoteListenerWrapper.testStarted(RemoteListenerWrapper.java:85)
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:216)
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:336)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)
at java.net.Socket.<init>(Socket.java:208)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 8 more
2014/04/24 14:25:16 ERROR - jmeter.samplers.RemoteListenerWrapper: testStarted(host) java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at org.apache.jmeter.samplers.RemoteSampleListenerImpl_Stub.testStarted(Unknown Source)
at org.apache.jmeter.samplers.RemoteListenerWrapper.testStarted(RemoteListenerWrapper.java:85)
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:216)
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:336)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)
at java.net.Socket.<init>(Socket.java:208)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 8 more
2014/04/24 14:25:16 ERROR - jmeter.samplers.RemoteListenerWrapper: testStarted(host) java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at org.apache.jmeter.samplers.RemoteSampleListenerImpl_Stub.testStarted(Unknown Source)
at org.apache.jmeter.samplers.RemoteListenerWrapper.testStarted(RemoteListenerWrapper.java:85)
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:216)
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:336)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)
at java.net.Socket.<init>(Socket.java:208)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 8 more
2014/04/24 14:25:16 ERROR - jmeter.samplers.RemoteTestListenerWrapper: java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at org.apache.jmeter.samplers.RemoteSampleListenerImpl_Stub.testStarted(Unknown Source)
at org.apache.jmeter.samplers.RemoteTestListenerWrapper.testStarted(RemoteTestListenerWrapper.java:70)
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:216)
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:336)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)
at java.net.Socket.<init>(Socket.java:208)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 8 more
2014/04/24 14:25:16 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : FTP Thread Group
2014/04/24 14:25:16 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group FTP Thread Group.
2014/04/24 14:25:16 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2014/04/24 14:25:16 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 0 perThread 0.0 delayedStart=false
2014/04/24 14:25:16 INFO - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties)
2014/04/24 14:25:16 INFO - jmeter.threads.JMeterThread: Running PostProcessors in forward order
2014/04/24 14:25:16 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2014/04/24 14:25:16 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2014/04/24 14:25:16 INFO - jmeter.threads.JMeterThread: Thread started: FTP Thread Group 1-1
2014/04/24 14:25:16 ERROR - jmeter.threads.RemoteThreadsListenerWrapper: java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at org.apache.jmeter.threads.RemoteThreadsListenerImpl_Stub.threadStarted(Unknown Source)
at org.apache.jmeter.threads.RemoteThreadsListenerWrapper.threadStarted(RemoteThreadsListenerWrapper.java:52)
at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:597)
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:961)
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:946)
at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:566)
at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:554)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:253)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)
at java.net.Socket.<init>(Socket.java:208)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 12 more
2014/04/24 14:25:16 INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times
2014/04/24 14:25:16 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2014/04/24 14:25:16 INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true
2014/04/24 14:25:16 INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000
2014/04/24 14:25:17 ERROR - jmeter.samplers.BatchSampleSender: sampleOccurred java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at org.apache.jmeter.samplers.RemoteSampleListenerImpl_Stub.processBatch(Unknown Source)
at org.apache.jmeter.samplers.BatchSampleSender.sampleOccurred(BatchSampleSender.java:184)
at org.apache.jmeter.samplers.DataStrippingSampleSender.sampleOccurred(DataStrippingSampleSender.java:92)
at org.apache.jmeter.samplers.RemoteListenerWrapper.sampleOccurred(RemoteListenerWrapper.java:104)
at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84)
at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:783)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:443)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)
at java.net.Socket.<init>(Socket.java:208)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 12 more
2014/04/24 14:25:17 ERROR - jmeter.samplers.BatchSampleSender: sampleOccurred java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at org.apache.jmeter.samplers.RemoteSampleListenerImpl_Stub.processBatch(Unknown Source)
at org.apache.jmeter.samplers.BatchSampleSender.sampleOccurred(BatchSampleSender.java:184)
at org.apache.jmeter.samplers.DataStrippingSampleSender.sampleOccurred(DataStrippingSampleSender.java:92)
at org.apache.jmeter.samplers.RemoteListenerWrapper.sampleOccurred(RemoteListenerWrapper.java:104)
at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84)
at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:783)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:443)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.<init>(Socket.java:425)
at java.net.Socket.<init>(Socket.java:208)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
... 12 more
答案 0 :(得分:11)
我也得到了同样的错误。修复方法如下。
启动客户端时,请执行以下操作。
Jmeter Master:
./ jmeter-server -Djava.rmi.server.hostname = 192.168.19.219
Jmeter奴隶:
./ jmeter -Djava.rmi.server.hostname = 192.168.19.201
客户端和服务器都与其他客户端建立连接。如果未指定,则Slave将本地127.0.1.1发送给Master。 Master无法打开与该ip和端口的连接,从而导致错误。
答案 1 :(得分:1)
为JMeter客户端和服务器提供主机名解决了这个问题。这在Apache JMeter用户手册页面上有解释,但在Tips section下有不同意图。
您可以在命令行上使用选项“-Djava.rmi.server.hostname =”启动JMeter服务器,并且客户端也需要相同的选项。