JMeter - Loopback address error when launching jmeter-server on Linux

后端 未结 5 687
慢半拍i
慢半拍i 2021-01-31 17:14

I\'m trying to set up a distributed load testing environment using JMeter. I need to set up the remote clients using something portable like a Linux Live CD, but whenever I att

相关标签:
5条回答
  • 2021-01-31 17:37

    In latest version, you can run your script with:

    ./jmeter-server -Djava.rmi.server.hostname=xxx.xxx.xxx.xxx
    

    Replace xxx.xxx.xxx.xxx with this server's IP address, i.e., the IP address that the controlling jmeter machine will use to connect to this server.

    0 讨论(0)
  • 2021-01-31 17:39

    You can edit jmeter.server file to add:

    RMI_HOST_DEF=-Djava.rmi.server.hostname=XXX.XXX.XXX.XXX
    

    This solved mine problem. You can try to check this page for more details.

    0 讨论(0)
  • 2021-01-31 17:50

    Looks like Glen was right on the money with his comment.

    Not sure is this helps but I found a bug which seems to contain a patch for this issue.

    https://bugs.launchpad.net/ubuntu/+source/jakarta-jmeter/+bug/589042

    Thanks again, Glen!
    (If you decide to make it into an actual answer, I'll be sure to accept it!)

    0 讨论(0)
  • 2021-01-31 17:53

    Change your hostname from localhost to your right ip address.

    1. Check your hostname

      hostname

    2. Check your internet ip address

      ifconfig

    3. Add this line to /etc/hosts

      your_ip_address your_hostname

    4. Comment hostname which assigned localhost in /etc/hosts

    0 讨论(0)
  • 2021-01-31 17:56

    I was able to get it to start after setting this environment variable:

    export RMI_HOST_DEF=-Djava.rmi.server.hostname=XXX.XXX.XXX.XXX
    

    Also have downloaded jmeter 2.8 from here: http://archive.apache.org/dist/jmeter/binaries/

    Ubuntu apt-get version is 2.3.4

    0 讨论(0)
提交回复
热议问题