添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I have 2 Virtual Machines(Ubuntu), the first 1 as Master, and the second as slave, when I run the test on the Remote Machine I got the following:

Error in rconfigure() method java.rmi.ConnectException: Connection refused to host: 192.168.56.10; nested exception is: java.net.ConnectException: Connection refused (Connection refused)

VirtualBox: 6.0

VirtualMachine:Ubuntu 19.10 Eoan Ermine

Apache Jmeter: 5.2.1

  • Make sure to have bridged networking mode for both VMs so each VM would have it's own IP address assigned
  • On master machine add the next line to user.properties file :

    remote_hosts=ip address of the slave machine here
    
  • Make sure that Ubuntu firewall is either disabled or following ports are allowed there

  • 1099 (or the port you define as server_port)
  • the port you define as server.rmi.localport
  • the port(s) you define as client.rmi.localport
  • If not yet, follow instructions from the Setting up SSL chapter or disable secure communication between master and slave(s) by adding the next line to user.properties file on both nodes:

    server.rmi.ssl.disable=true
    

    More information:

  • Remote hosts and RMI configuration
  • How to Perform Distributed Testing in JMeter
  • Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question. Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers.

  •