You are viewing a plain text version of this content. The canonical link for it is here.
Posted to devnull@infra.apache.org by vl...@apache.org on 2019/06/08 18:42:19 UTC

[jmeter] 15/47: Add details of how to set rmi hostname

This is an automated email from the ASF dual-hosted git repository.

vladimirsitnikov pushed a commit to annotated tag v2_3
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit 5dbe89caac94de83911f1f5d888c18ac7b8ccdb3
Author: Sebastian Bazley <se...@apache.org>
AuthorDate: Thu Sep 20 14:50:37 2007 +0000

    Add details of how to set rmi hostname
    
    git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-2@577779 13f79535-47bb-0310-9956-ffa450edef68
    
    Former-commit-id: a42f42774de88cac5a849a3a783b732d0c7e7199
---
 bin/jmeter-server | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/bin/jmeter-server b/bin/jmeter-server
index f0886a2..46d5bd5 100755
--- a/bin/jmeter-server
+++ b/bin/jmeter-server
@@ -24,4 +24,12 @@ DIRNAME=`dirname $0`
 CLASSPATH=${DIRNAME}/../lib/ext/ApacheJMeter_core.jar:${DIRNAME}/../lib/jorphan.jar:${DIRNAME}/../lib/logkit-1.2.jar rmiregistry $SERVER_PORT &
 # stop rmiregistry on interrupt 
 trap "kill $!" 2
-${DIRNAME}/jmeter -Dserver_port=${SERVER_PORT:-1099} -s -j jmeter-server.log "$@"
\ No newline at end of file
+
+# If the client fails with:
+# ERROR - jmeter.engine.ClientJMeterEngine: java.rmi.ConnectException: Connection refused to host: 127.0.0.1
+# then it may be due to the server host returning 127.0.0.1 as its address 
+
+# One way to fix this is to define RMI_HOST_DEF below
+#RMI_HOST_DEF=-Djava.rmi.server.hostname=xxx.xxx.xxx.xxx
+
+${DIRNAME}/jmeter -Dserver_port=${SERVER_PORT:-1099} $RMI_HOST_DEF -s -j jmeter-server.log "$@"
\ No newline at end of file