JMeter Beginner Tutorial 28 - Remote Testing | Master Slave | Distributed Testing

Поділитися
Вставка
  • Опубліковано 14 лип 2018
  • more about Raghav - automationstepbystep.com/
    STEPS
    JMeter - How to do Remote Testing
    How to do Distributed Testing
    How to create Master Slave
    Step 1 : SetUp Master
    added remote system’s ip in jmeter.properties
    Step 2 : create keystore file
    run create-rmi-keystore.bat / create-rmi-keystore.sh
    name : rmi
    password : changeit
    Step 3 : run jmeter-server file on slave (remote) system
    Step 4 : Run and Validate
    GUI and Commandline
    Helpful Tips:
    - all systems (master and slaves) have same ver of JMeter
    - all systems have java (preferably same ver)
    - all systems can connect to each other (are in same subnet)
    - no need to copy jmeter script (jmx) to slave systems
    - If you want to have 100 users and using 2 slaves. Give no as 50
    References
    jmeter.apache.org/usermanual/...
    www.google.co.in/search?q=jme...
    #JMeterTraining #JMeterBeginnerTutorials #JMeterRemoteTesting #JMeterDistributedTesting #JMeterMasterSlaveConcepts
    JMeter Beginner - bit.ly/2oBbtIU
    JMeter Intermediate - bit.ly/2oziNVB
    JMeter Advanced - bit.ly/2Q22Y6a
    JMeter Tips & Tricks - bit.ly/2NOfWD2
    Performance Testing - bit.ly/2wEXbLS
    UA-cam PLAYLISTS
    / @raghavpal
    UA-cam
    / automationstepbystep
    FACEBOOK
    / automationstepbystep
    TWITTER
    / automationsbs
    If you like videos on the channel Automation Step by Step, hit the like button and share with others.
    Click the SUBSCRIBE button and hit the bell icon to keep getting new videos.
    _______ ONLINE COURSES TO LEARN _______
    Visit - automationstepbystep.com/
    Never Stop Learning
    Raghav

КОМЕНТАРІ • 270

  • @HS-yd6bn
    @HS-yd6bn 5 років тому +4

    Hi Raghav, have been watching your tutorials for a while now and have to say they all are amazing. The way you explain and knowledge you show is highly recommendable. Thanks for all your hardwork. H

    • @RaghavPal
      @RaghavPal  5 років тому

      You're welcome H S. Humbled by your message

  • @juancamiloa.n1886
    @juancamiloa.n1886 4 роки тому +4

    Raghav Pal....Just THANK YOU!!! I've been watching your tutorials and have to say they all are clear as mountain waters. Thanks for share your knowledge.
    Wish the best ever

    • @RaghavPal
      @RaghavPal  4 роки тому

      So happy and most welcome Juan

  • @The5StringFury
    @The5StringFury 4 роки тому

    Very Useful and straight to the point. I like it!

  • @gowrishankervel4689
    @gowrishankervel4689 5 років тому

    Hi Raghav, thanks for the clear definition

    • @RaghavPal
      @RaghavPal  5 років тому

      You're welcome Gowri

  • @jeyabalaGeorge
    @jeyabalaGeorge 5 років тому +1

    Hi Raghav,
    Very useful video!! Thank you. I have read the steps in different places. But your video is easy to follow and I use Mac. I have got to do performance test for around 30000 users. Hope I can do that with this method.😊👍

  • @TheJonesin666
    @TheJonesin666 2 роки тому

    Excellent video! Very clear and very well explained. Thank you!!

  • @DeividLanderos
    @DeividLanderos 6 місяців тому

    you are the funking awesome!!! Greetings from Chile.

    • @RaghavPal
      @RaghavPal  6 місяців тому

      Thanks for watching...

  • @yeshwanthvankina9650
    @yeshwanthvankina9650 4 роки тому

    Raghav : You are Amazing to Making everyone expert with your tutorials - Can we Run Master and Slave in real time if no what are the Challenges we might face

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Yeshwanth, Yes we can run in real time. Most common challenge is the connection between master and slave.

  • @LayanSooriyaarachchi
    @LayanSooriyaarachchi 3 роки тому

    nice explanation... very useful..

    • @RaghavPal
      @RaghavPal  3 роки тому +1

      Thank you so much Layan

  • @mallikarjunyaramala5441
    @mallikarjunyaramala5441 4 роки тому

    very nice lecture.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Thanks for liking Mallikarjun

  • @RaghavPal
    @RaghavPal  5 років тому

    Online courses & training - automationstepbystep.com/

  • @AWSFan
    @AWSFan Рік тому +1

    Hi raghav, Could you please let me know whether or not it is possible to execute 100s and 1000s of testcases of jmeter in several slave machines of AWS..I mean it will be a single build on jenkins which triggers the jmeter, but the execution time needs to be faster. Also just a sidenote: I have used only simple data writer as the only listener as only one POst-Processorr is there in the jmx, no fancy plugins are embedded into the jmx.
    Could you suggest any approach wherein I can make my jmeter test run faster?
    Thanks in advance!

    • @RaghavPal
      @RaghavPal  Рік тому

      you can do that Abhik, some links to refer
      stackoverflow.com/questions/67373043/jmeter-distributed-testing-on-ec2-master-and-ec2-slave-machines
      www.tothenew.com/blog/jmeter-master-slave-setup-in-multiple-aws-regions/

  • @vaishnavib2020
    @vaishnavib2020 5 років тому

    Hello Raghav, your videos are very helpful, thanks a lot. can you suggest how do we create an API that takes user credentials (using GET and POST) from a DB and uses them for Login/register purpose. can we perform this without the actual website in place?

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Vaishnavi
      Yes we can do this if there is an API created for this. In JMeter we can call API requests

  • @irvinln
    @irvinln 3 роки тому +2

    Hi Raghav, your videos are awesome. Is there a way to label the different slaves to differentiate their results?

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Irvin, can check __machineName or __machineIP functions

  • @giantboanerges206
    @giantboanerges206 5 років тому +2

    Hi Raghav,
    Your videos are awesome. Thanks a lot for sharing your knowledge to us. I am strange to jmeter. My friend ask my help to setup jmeter distribution testing. Two days before I watched this video and setup Master slave distribution testing. I got success response. Kudos to you!!! Tysm
    Can you please make video about distribution testing in remote (ie) Master jmeter in local environment and slave machines in AWS. I tried this but can't make it completely.

    • @RaghavPal
      @RaghavPal  5 років тому

      Glad to know this, I will create it soon

    • @giantboanerges206
      @giantboanerges206 5 років тому +1

      @@RaghavPal Thank you Raghav 😍

  • @souravkamalguha
    @souravkamalguha 5 років тому

    Hi Raghav,
    Thanks a lot for the video. Its very well demonstrated and possibly the best right now. However, I am facing an issue here while testing in distributed mode in windows system.
    Can you please tell me why the master is not listening back the results when the test functioning in slaves perfectly alright?
    Regards

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Sourav, will have to see logs for this. Also check no steps are missed

  • @maheshgoud49
    @maheshgoud49 5 років тому

    Hi Raghav
    can you please open jmeter-server file in jmeter 4.0 version.
    all the above quaries related to this.once you do this that would be the great help for us.
    Thanks

  • @pankajrajegarg4000
    @pankajrajegarg4000 4 роки тому

    Hi Raghav, What should be the ramp up time in master-slave concept. for e.g. I want to run 10 threads on 2 different slaves with ramp up 10 secs, what I should put 5 threads on ramp up 5 or 5 threads on ramp up 10 sec. Any help will be appreciated. Thanks

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Pankaj, If you want to have 100 users and using 2 slaves. Give no as 50
      For Rampup - if you set 5 sec, It will be 5 for all slaves(nodes)
      stackoverflow.com/questions/25060270/jmeter-distributed-testing-how-does-ramp-up-time-work-in-distributed-load-test

  • @SmartCat...
    @SmartCat... 4 роки тому

    Hi , thank you for this tutorial... I have an additional question. how do I start Master and Slave at the same time from UI and cmd prompt. tnx!

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi, I have shown both ways in the tutorial. Pls try and let me know if you face any specific issue

  • @vankayalapatisrihari1718
    @vankayalapatisrihari1718 4 роки тому

    Hi Raghav,
    I have a one Question .
    While running the Distributed testing in JMeter(Master & Slave concept). I want to get the results from individual Machines? Is there any way to capture the results in individual Machines(Means need to capture the results every slave and master).
    Thanks.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Vankayalapati, you can check this - stackoverflow.com/questions/47939724/jmeter-distributed-testing-save-separate-results-for-each-slave

  • @fouziyahanif4429
    @fouziyahanif4429 5 років тому

    Hi Raghav, My question it is possible to add parameter values on add scenario like as web service testing by using postman ( { .... ,...... , .... , }. is this possible in jmeter. J meter is purely based On service testing it possible to verify the "Add, update, get, delete, activate , deactivate, Scenarios.
    Thanks in advance.

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Fouziya, we can have assertions in JMeter. Some of these are in-built and can also be scripted for custom assertions. Having said that, Postman is created for API testing and should have more features than JMeter if it is API functional testing.

  • @swatichiniwal8
    @swatichiniwal8 5 років тому

    Hi Raghav, Thanks for video. I am doing the distributed load test from java code. Tests are running fine but unable to generate jtl file. is there any configuration need to be done in order to get the results?

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Swati, it should be available on the master system. Also check this - groups.google.com/forum/#!topic/ptgram24/y5TB9pxk6Hk

  • @solsgibi
    @solsgibi 6 років тому

    Can I run different tests in salves and monitor those tests from Master? for (e.g) can I run SMTP test in Slave1 and HTTP test in slave2. I want to run these to test from master

    • @RaghavPal
      @RaghavPal  6 років тому

      Yes Solomon, you can run your tests in Slaves and results will be shown in the master

  • @amraboeleneen2221
    @amraboeleneen2221 4 роки тому

    that's very helpful

  • @soumyakori31
    @soumyakori31 5 років тому

    Hi Raghav,
    Your video tutorials are very beneficial. Thanks for sharing your knowledge and experience with us!
    I am implementing load test at my office and I have one question. In a realistic scenario, do you include 2 different IP addresses in Perfmon metrics collector, to monitor and analyze database server health as well as application server health in the same test plan? In our office, the database server is different from the server where we maintain the application files. I need to understand if I can monitor both of these servers' health in the same test plan or different test plans. For ex: If a page is hit by a user, it would communicate with both these servers and I need to know how both of these servers behave with different loads. Thank you!

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Soumya, it will depend on your needs actually.
      If you look from the user perspective. He does not know about these diff servers, IP etc. So you can setup a realistic user scenario and then add samplers to get performance of both the servers

    • @soumyakori31
      @soumyakori31 5 років тому +1

      Hi Raghav, thank you for your immediate response. I got an idea how to do it with your answer. I will add two samplers in the same test plan with the two different IP address that I want to test. Your answer helped. Thanks again!

  • @zexicc
    @zexicc 4 місяці тому +2

    Hello, thanks for video. I did as instructed, and slave does the tests but I do not get results on master . Pinged master from slave and vice versa and they communicate with no problem with each other. Any suggestion how to fix?

    • @RaghavPal
      @RaghavPal  4 місяці тому +1

      Zeljka
      there are several common troubleshooting steps you can take:
      1. Check RMI Configuration:
      - Ensure that the RMI (Remote Method Invocation) configuration is correct. Bi-directional communication between the master and slaves relies on this setup. Verify that the RMI settings are consistent across all machines involved in the distributed test.
      2. External Data Dependencies:
      - If your test relies on external data (e.g., using a CSV Data Set Config), make sure you've copied the necessary CSV file(s) to the slave machine(s). The path to the CSV file should be accessible from the slave.
      3. JMeter Plugins:
      - If your test script uses JMeter Plugins, ensure that the plugins are installed on the slave machine(s). You can use the JMeter Plugins Manager to install the required plugins. Open the `.jmx` test plan on the slave, and the manager should detect and install the necessary plugins.
      4. Logging and Debugging:
      - Check the jmeter.log files on both the master and slave. Look for any error messages or warnings related to the distributed testing. The logs may provide insights into the issue.
      5. File Paths:
      - If you're using custom CSV files for your tests, ensure that the file paths specified in your test plan are valid on the slave machine(s). If you use full paths, create the same folder structure on the slave. If you use relative paths, copy the CSV files to a location relative to the JMeter bin folder.
      6. Consistent JMeter Versions:
      - Make sure that both the master and slave are running the same JMeter version. Inconsistencies in versions can lead to unexpected behavior.
      7. Firewall and Anti-Virus:
      - Disable the firewall on both master and slave machines. Additionally, consider temporarily disabling any anti-virus software that might interfere with RMI communication.
      Remember that distributed testing involves multiple components, so thorough checks and coordination between master and slave configurations are essential. Following these steps should help you identify and resolve the issue.
      ..

  • @selenaanhnguyen6075
    @selenaanhnguyen6075 4 роки тому +3

    Thank you for a great tutorial, Raghav! I see that normal set up would be 1 Master machine and multiple Slave machine(s). Each slave machine will run the exact test plan created on the Master machine. I have 2 questions:
    1. Should we run the test on the Master machine too? Why and why not?
    2. How can you tell each slave to run from a specific thread/thread node? For example, Test plan has 10 threads, Slave 1 runs from thread 1 to 5, Slave 2 runs from thread 6 to 10.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Selena, as per my knowledge
      1. As per my knowledge the master commands the slave nodes to run, but does not run on itself. However I believe we can work-around by also making the ip of the master available in the remote systems and this way you can also run on the master. Have not tried, you can check this.
      2. Here I could not find a direct way online, Here are some links that may guide you
      stackoverflow.com/questions/31809597/how-to-configure-the-number-of-threads-to-run-on-slave-machines-in-jmeter
      stackoverflow.com/questions/21473230/how-to-configure-different-loads-on-slave-machines-in-jmeter/21573228#21573228

  • @erfantavoosi100
    @erfantavoosi100 3 роки тому

    Are there any other pre requisites, other settings that need to be in place on the master and slave?

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Erfan, I have tried to cover most of the setup, Still you can refer some online documentation to confirm

  • @fadillahachmad7404
    @fadillahachmad7404 5 років тому

    nicely done

  • @3VAudioVideo
    @3VAudioVideo 3 роки тому

    Mix of Mac and Windows can be used in a single distributed test environment, or do all the computers all need to be using the same operating system? I have one of each and need to know if I should have to purchase another machine.

    • @RaghavPal
      @RaghavPal  3 роки тому +1

      Hi, as long as you can connect the machines over a network OR in other words the systems can talk to each other over a network, you can do Distributed testing and systems need not be of same OS

    • @3VAudioVideo
      @3VAudioVideo 3 роки тому

      @@RaghavPal Thank you!!

  • @PreethiReddySodum
    @PreethiReddySodum 4 роки тому +1

    Hi Raghav, What if we have two or more Remote machines and you want to trigger in all at the same time??

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Preethi, there is an option to remote start all in the Run menu

  • @venkateshenumula1345
    @venkateshenumula1345 5 років тому

    Thank you so much pal

    • @RaghavPal
      @RaghavPal  5 років тому

      You're welcome Venkatesh

    • @venkateshenumula1345
      @venkateshenumula1345 5 років тому

      @@RaghavPal
      When I am trying to connect to the slave machine getting the following error
      javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

  • @pradeeps1092
    @pradeeps1092 4 роки тому

    Thank you 😊

    • @RaghavPal
      @RaghavPal  4 роки тому

      You're welcome Pradeep

  • @apsarathi1
    @apsarathi1 3 роки тому

    Thank you somuch . Changeit password and rmi name while creating key , will this be static. when I used other wording . I struggled and nowhere I found this help

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hope this helped Partha

  • @3kvikas
    @3kvikas 5 років тому

    Hi Raghav
    is there a way to to run linux command using jemter and that command is run over that specific linux sever ? How i can achieve that ?

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Vikas, pls check this - www.technix.in/execute-linux-command-shell-script-apache-jmeter/
      www.blazemeter.com/blog/how-run-external-commands-and-programs-locally-and-remotely-jmeter

  • @anantakumarjena279
    @anantakumarjena279 5 років тому

    Hi raghav, nice video. I have one dbt. That is this keystore.jks I have to create both in master and slave or only on master file to connect

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Ananta, you will create on master and copy it on slave also

  • @sriharivankayalapati873
    @sriharivankayalapati873 Рік тому

    Hi Raghav,
    I have one question
    I.e how to run load testing in geographical locations using jmeter

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Srihari
      One of the option will be to Configure Distributed Testing:
      Go to "Run" -> "Remote Start" -> "Select Test Plan".
      Add the IP addresses or hostnames of the machines that will act as load generators in different geographical locations.
      Configure the desired number of threads for each location.
      There are a few other options for running load testing in geographical locations using JMeter.
      *Use a cloud-based load testing service:* There are a number of cloud-based load testing services that offer the ability to run tests from different geographical locations
      E.g. Blazemeter
      *Use a proxy server:* A proxy server is a server that acts as an intermediary between your computer and the internet. You can use a proxy server to route your traffic through a different geographical location. This can be useful for load testing applications that are hosted in a specific geographical location
      *Use a VPN:* A VPN, or virtual private network, is a service that encrypts your traffic and routes it through a server in a different geographical location. This can be useful for load testing applications that are hosted in a specific geographical location and you want to test from different parts of the world.
      Hope this helps

  • @jgperezh1981
    @jgperezh1981 2 роки тому

    Hi Raghav,
    In a master-slave scenario, can I have various slaves and also the master test an application? For example, If i have 1 master and 4 slaves...at some point can I have the 5 of them testing?
    Thanks in advance

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi José, not very sure, will need to check

  • @stayfitwithneha
    @stayfitwithneha 10 місяців тому

    Hi Raghav, your videos are very good. Can you please make a video on remote testing on Aws EC instances??

    • @RaghavPal
      @RaghavPal  10 місяців тому +1

      I will plan Neha

  • @harithaviyala3648
    @harithaviyala3648 Рік тому

    Hi Raghav, i have been following your session and they are too good. I have a query - 1 master as local host and other 2 as slaves and tried to run from GUI jmeter is throwing this error "non-jrmp server at remote endpoint in jmeter" where i went wrong could you pls help.

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Haritha, this can help coderanch.com/t/482481/java/JRMP-server-remote-endpoint-Error

  • @shreyask8107
    @shreyask8107 Рік тому

    Hi Raghav,
    Very useful video!! Thank you
    i have a doubt , can we run the jmeter loadtest directly on the application server, instead of having master slaves ?

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Shreyas, yes we can, but do on a separate env

    • @shreyask8107
      @shreyask8107 Рік тому

      @@RaghavPal what problem can we face if we don't have separate env?

  • @NitheeshSelvaraj-ep4ge
    @NitheeshSelvaraj-ep4ge 9 місяців тому

    Hi Raghav, How can I install the jmeter-server file as a service in windows and Mac?

    • @RaghavPal
      @RaghavPal  9 місяців тому

      Nitheesh
      **To install the jmeter-server file as a service in Windows:**
      1. Download the jmeter-server.jar file from the Apache JMeter website.
      2. Save the file to a location on your computer where you have administrator privileges.
      3. Open the Windows Services console.
      4. Right-click on the blank area of the console and select "New > Service".
      5. In the "Create Service" dialog box, enter the following information:
      * Service Name: jmeter-server
      * Display Name: JMeter Server
      * Description: JMeter Server Service
      * Startup Type: Automatic
      * Path to executable: The path to the jmeter-server.jar file that you saved in step 2
      6. Click on the "OK" button to create the service.
      **To install the jmeter-server file as a service in macOS:**
      1. Download the jmeter-server.jar file from the Apache JMeter website.
      2. Save the file to a location on your computer where you have administrator privileges.
      3. Open a terminal window.
      4. Change to the directory where you saved the jmeter-server.jar file.
      5. Run the following command:
      ```
      sudo ln -s jmeter-server.jar /Library/LaunchDaemons/jmeter-server.plist
      ```
      6. Open the System Preferences app.
      7. Click on the "Users & Groups" icon.
      8. Click on the "Login Items" tab.
      9. Click on the "+" button and select the "jmeter-server.plist" file.
      10. Click on the "Close" button to save your changes.
      Once you have installed the jmeter-server file as a service, it will start automatically when your computer starts up. You can manage the service using the Windows Services console or the macOS System Preferences app.
      **To start or stop the jmeter-server service:**
      * In Windows, open the Windows Services console and double-click on the "jmeter-server" service.
      * In macOS, open the System Preferences app and click on the "Users & Groups" icon. Click on the "Login Items" tab and check or uncheck the "jmeter-server.plist" file to start or stop the service.
      **To uninstall the jmeter-server service:**
      * In Windows, open the Windows Services console and right-click on the "jmeter-server" service. Select "Stop" and then "Delete".
      * In macOS, open a terminal window and run the following command:
      ```
      sudo rm /Library/LaunchDaemons/jmeter-server.plist
      ```

  • @monikaselva6699
    @monikaselva6699 2 роки тому

    Hi, I tried this master and slave setup to run my .jmx script. I placed both my script and CSV file in bin (master as well as in slave machines) my test is able to run but it is getting failed "error: test failed! Could not read header line for file in jmeter" what exactly this means, how to fix this?

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Monika, it can be due to location issue of csv
      Check www.adoclib.com/blog/jmeter-csv-data-set-config-issue-could-not-read-file-header-line-for-file.html
      stackoverflow.com/questions/64031400/jmeter-csv-data-set-config-issue-could-not-read-file-header-line-for-file

  • @rameshreddy8968
    @rameshreddy8968 2 роки тому

    Thanks for the video... i have 2 questions 1) you mentioned that will distribute the load equval basis in master (500) and slave machine (500) but i want to distrubute one machine 250 vusers and another machine 750 vusers, can you help me hw can we do this kind of requirements?
    2) Test data(csv file) should we keep slave machine, is it neccasary?
    Can you help me on this?

    • @RaghavPal
      @RaghavPal  2 роки тому

      Hi Ramesh, you can use if controller with some commands, check this
      www.blazemeter.com/blog/how-to-perform-distributed-testing-in-jmeter
      Yes you will need to keep the csv file in slave machine inside the bin directory
      sqa.stackexchange.com/questions/14648/issue-with-reading-csv-file-when-doing-distributed-testing-in-jmeter

  • @harmeetsingh7583
    @harmeetsingh7583 4 роки тому

    Hi Raghav
    While doing IP Spoofing(Hitting server with Multiple IPs) using JMeter, the Jmeter listeners show requests with different IPs, but while looking into the Target server logs it shows the Public IP only instead of showing different IPs hits. Can you please help me with this? As I need to do the IP Spoofing on one server.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Harmeet, I believe this has to be addressed from the server side. Pls get in touch with your network team

  • @vishalsangle8369
    @vishalsangle8369 2 роки тому

    Hello Raghav sir,
    Your all jmeter video's are very nicely and easily explained.thankx
    Can you please tell that in master-slave environment in jmeter,how can we configured fix set of users that should be running from selective slave only.

    • @RaghavPal
      @RaghavPal  2 роки тому

      I will try to add a session on this

  • @voyage9586
    @voyage9586 6 років тому

    Informative Video tutorial , I have a question . Is there any specific requirement that a Master should always have a GUI interface ? Can a linux machine with command line interface be used as master?. TIA

    • @RaghavPal
      @RaghavPal  6 років тому

      Yes Purush, as shown in the later part, you can run from command line.

  • @madhureddy6899
    @madhureddy6899 4 роки тому

    We need to copy created keystore file to all jmeter bin of all slave machine s?

  • @maheshgoud49
    @maheshgoud49 5 років тому

    Hi raghav
    getting below error when i try to start the jmeter-server.bat in jmeter4.0
    Changing to JMeter home directory
    Could not find ApacheJmeter_core.jar ...
    ... Trying JMETER_HOME=..
    Found ApacheJMeter_core.jar
    Server failed to start: java.rmi.server.ExportException: Listen failed on port: 0; nested exception is:
    java.io.FileNotFoundException: rmi_keystore.jks (The system cannot find the file specified)
    An error occurred: Listen failed on port: 0; nested exception is:
    java.io.FileNotFoundException: rmi_keystore.jks (The system cannot find the file specified)
    errorlevel=1
    Press any key to continue . . .

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Mahesh, in your case rmi_keystore.jks is not present. This needs to be created on server side and should be copied at client side also.

  • @ankitkabra20
    @ankitkabra20 4 роки тому

    Hello Raghav, I was following your video but unable to generate the rmi.keystore.jks as I am on Windows 10 and Using Jmeter 5.0. Also I tried to setup the path as you described but it did not work.
    I tried to launch the Keystore using command prompt still it did not work. could you please help me out. Is there a way I can get this file.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Ankit, what was the message you got on running cmd create-rmi-keystore.bat. I am not sure why it will be specific to Windows 10, unless there are some settings that is preventing this.

  • @pratimchoudhury8638
    @pratimchoudhury8638 3 роки тому

    Hi Raghav, thanks for educating us so nicely!
    One qn - how to run a Distributed Testing (incl. several slaves) on AMI instance? I looked into all your videos but didn't get much help. Please suggest.

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Pratim, the basic process remains same, Things you should take care is
      The remote machine is added to the required Security Group to open network on the required ports so that the master and slaves can communicate with each other

    • @pratimchoudhury8638
      @pratimchoudhury8638 3 роки тому

      @@RaghavPal Dear Raghav, can you please suggest any steps to check this or ask the Networking/App team to verify - The remote machine is added to the required Security Group to open network on the required ports ?

    • @RaghavPal
      @RaghavPal  3 роки тому

      if you reach out to your team who manages the aws instances, they will inform you on this pretty quickly

    • @pratimchoudhury8638
      @pratimchoudhury8638 3 роки тому

      @@RaghavPal I'm facing a challenge while trying to run a Distributed test on Linux (Amazon EC2). When I assign the same VM as Master and Slave (as you show), no issues found. But when using 2 dedicated systems (1 master and slave each) and running from Master to Slave, getting this error -
      Creating summariser
      Created the tree successfully using LoadTesting/Projects/cscWeb/Scripts/cscWeb-05082020s_Pratim_Linux.jmx
      Configuring remote engine:
      Connection refused to host: ; nested exception is:
      java.net.ConnectException: Connection timed out (Connection timed out)
      Failed to configure
      Stopping remote engines
      Remote engines have been stopped
      Error in NonGUIDriver java.lang.RuntimeException: Following remote engines could not be configured:[]
      An error occurred: Error in NonGUIDriver Following remote engines could not be configured:[]
      Checked below pointers still issue is there -
      o Open jmeter-server on Slave
      o I ran the standalone test on each VM w/o any issues
      o Can ping each VM from other
      o They are on same subnet
      Please help.

  • @sathiiz
    @sathiiz 4 роки тому

    Hi Raghav, after clicking rmi.keystore.bat file i am not getting any DOS page, no response from jmeter. Unable to create .jks file. Am i missing aomething?

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Satheesh, have you checked all setup as per the video, May be can try again with a diff ver.

  • @dishantpatel2313
    @dishantpatel2313 3 роки тому +1

    Hi Raghav, Very useful video for me.
    Just one doubt how to give multiple IPs in the command line? By comma separated?

    • @RaghavPal
      @RaghavPal  3 роки тому +2

      Hi Dishant, you can give comma separated values. Check this jmeter.apache.org/usermanual/remote-test.html

    • @dishantpatel2313
      @dishantpatel2313 3 роки тому

      @@RaghavPal thanks Raghav

  • @terrellroe9293
    @terrellroe9293 3 роки тому

    Hi Raghav, can you point me to a video that shows how to set up an API test that runs behind a proxy/firewall?

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Terell, I had created some videos on how to capture api requests in JMeter using proxy here ua-cam.com/play/PLhW3qG5bs-L9sCVY1c_vox9blIrIzwEEb.html
      Not a specific session on how to run behind proxy. Can try some online examples

  • @PreethiReddySodum
    @PreethiReddySodum 4 роки тому

    Hi Raghav, I'm facing the below issue in Windows after all the setup while running the remote session in Jmeter. Please help.!!
    error during JRMP connection establishment; nested exception is:
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Preethi, recheck these steps
      1. Copy the rmi_keystore.jks file from master to all slaves bin directory
      2. Start jmeter-server.bat on slaves
      Some helpful links - stackoverflow.com/questions/49797793/jmeter-4-remote-testing-in-cloud-with-ssl-keystore
      flood.io/blog/mutual-two-way-ssl-with-jmeter/

  • @izzeanshukri2731
    @izzeanshukri2731 Рік тому

    Hi, Raghav. Great tutorial but I have just 1 question regarding subnet. In Jmeter's documentation it says "The server is in the same subnet, if 192.x.x.x or 10.x.x.x IP addresses are used. If the server doesn't use 192.xx or 10.xx IP address, there shouldn't be any problems". You mentioned that the servers should be in same subnet, so does that mean if I have slave server with 54.x.x.x subnet, it cannot connect to the master server?

    • @RaghavPal
      @RaghavPal  Рік тому +1

      Hi Izzean,
      The statement in Jmeter's documentation you mentioned is related to the IP address format and it's not related to the subnet of the IP address
      In general, Jmeter master and slave servers can be in different subnets, as long as they can connect to each other over the network. If the master and slave servers are in different subnets, they need to be able to communicate with each other over the network through a router or a firewall
      if the slave server's IP address is in the 54.x.x.x subnet, it is not part of the private IP address space, but it should still be able to connect to the master server as long as the network communication between them is properly configured.

    • @izzeanshukri2731
      @izzeanshukri2731 Рік тому

      @@RaghavPal Oh i see. Thank you so much for replying :D

  • @dhanasekars6275
    @dhanasekars6275 4 роки тому

    Hi Raghav,
    How jmeter distributes the jmx script to all the slaves?
    is the distributed script during remote testing is stored anywhere in local machine?
    Is there any latency while distributing jmx script to all slave? (say about 50 slave)
    Then how master computes the response time for all machines?
    And pls share any reference related to above questions.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Dhana, all this is managed from master.

    • @dhanasekars6275
      @dhanasekars6275 4 роки тому

      Can I get more information like how they are managed in master.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Dhana, I have shown few points at the end of the video. Can get more info here - jmeter.apache.org/usermanual/jmeter_distributed_testing_step_by_step.html

  • @sharanbasava7632
    @sharanbasava7632 3 роки тому

    Hi Raghav Pal, Thank you for clear explanation.But can we do Master and Slave configurations or (Distributed Testing) in our Local Machines?.i'm waiting for your answer..Thanks.

    • @RaghavPal
      @RaghavPal  3 роки тому

      You can do, but may not be a good scenario to test master slave on the same machine

  • @sidduhiranni1179
    @sidduhiranni1179 5 років тому

    Hi raghav create-rmi-keystore.bat and create-rmi-keystore.sh file missing in my jmeter bin folder how can added it ???

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Siddu, pls check if they are hidden. You can try downloading JMeter again from JMeter website binaries section and check

  • @sumitbansal3291
    @sumitbansal3291 5 років тому

    Thanks raghav for this. But i have an one question on this. . Jks file is created on master or slave or on both.

    • @RaghavPal
      @RaghavPal  5 років тому +1

      Hi Sumit, Both, create on master and place on all slaves too

  • @utkarshpatel772
    @utkarshpatel772 Рік тому

    If the slave server is on a different subnet, How we can config it?

    • @RaghavPal
      @RaghavPal  Рік тому

      Hi Utkarsh
      To configure a slave server on a different subnet in JMeter, you need to do the following:
      1. Open the JMeter configuration file, `jmeter.properties`.
      2. In the `remote_hosts` property, add the IP address of the slave server.
      3. In the `remote_hosts_list` property, add the subnet mask of the slave server.
      4. Save the JMeter configuration file.
      Here is an example of the `remote_hosts` and `remote_hosts_list` properties:
      ```
      remote_hosts = 192.168.1.100
      remote_hosts_list = 192.168.1.0/24
      ```
      Once you have configured the slave server, you can start it using the `jmeter -s` command. The `-s` option tells JMeter to start the slave server.
      To run a test on the slave server, you need to add the `remote_hosts` property to the JMeter test plan. You can do this by right-clicking on the test plan and selecting **Add -> Remote Hosts**.
      In the **Remote Hosts** dialog box, add the IP address of the slave server and the subnet mask. Click on the **OK** button.
      Once you have added the `remote_hosts` property to the JMeter test plan, you can run the test. The test will be run on the slave server.
      I hope this helps

  • @hazimabdoh6303
    @hazimabdoh6303 Рік тому

    HI Mr Raghv , when excuting the folowing command from C:\Users\Lenovo\apache-jmeter-5.5\apache-jmeter-5.5\bin>create-rmi-keystore.bat,
    the error message appears as shown bellow:
    'keytool' is not recognized as an internal or external command,
    operable program or batch file.
    "Copy the generated rmi_keystore.jks to jmeter/bin folder or reference it in property 'server.rmi.ssl.keystore.file'"
    C:\Users\Lenovo\apache-jmeter-5.5\apache-jmeter-5.5\bin>.
    any help pls.thanks

    • @RaghavPal
      @RaghavPal  Рік тому +1

      Hi Hazim, do you have JDK installed and setup on your system
      Pls check this - bobbyhadz.com/blog/keytool-is-not-recognized-as-internal-or-external-command

    • @hazimabdoh6303
      @hazimabdoh6303 Рік тому

      @@RaghavPal i did jdk installing and setup on my system and also edit keytool path to the environment variable , and everything goes very correctly , thanks very much mr Raghav for you unlimited valued support.

  • @deepdpk
    @deepdpk 4 роки тому

    Hi
    It was a nice tutorial but how do I handle the test data in this setup?

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Test data will have to be copied to the nodes

  • @aswinsridhar4900
    @aswinsridhar4900 4 роки тому

    Thank you so much for the very clear explanation Raghav. I tried the same in my Mac and I'm getting 'java.io.FileNotFoundException: rmi_keystore.jks (No such file or directory)'. But I've created the rmi_keystore.jks file like how you said in the video(name: rmi, pwd: changeit) and it is available in the bin folder

    • @aswinsridhar4900
      @aswinsridhar4900 4 роки тому

      Just got that resolved by un commenting some lines in jmeter.properties file. Thanks bro!

    • @aswinsridhar4900
      @aswinsridhar4900 4 роки тому +1

      Now i'm struck in 'java.net.ConnectException: Connection refused (Connection refused)' even after running my jmeter-server

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Aswin, can you check if this is covered in any of the other comments of this video.

    • @uditagrawal6603
      @uditagrawal6603 4 роки тому

      @@aswinsridhar4900 Setup : Slave : Windows Desktop,
      Master : Mac
      Problem faced : java.net.ConnectException: Connection refused (Connection refused)
      Solution(worked for me) :
      1. Check whether you are able to ping machines with each other(i.e they should be on same subnet).
      2. Configurations on slave :
      jmeter-server.bat->
      i) Add set RMI_HOST_DEF=-Djava.rmi.server.hostname=
      ii) Add this variable along with JMETER_CMD_LINE_ARGS (e.g. call jmeter -s -j jmeter-server.log %JMETER_CMD_LINE_ARGS% %RMI_HOST_DEF%)
      3. Configuration on master :
      jmeter.properties->
      i) Add remote_hosts=
      Command while running :
      ./jmeter.sh -Djava.rmi.server.hostname=
      www.programmersought.com/article/8044950895/

  • @krishnaph5654
    @krishnaph5654 3 роки тому

    Can I use the same method to run 1lakh plus users(50k concurrent users) ? How many slaves would be required?

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Krishna, that will depend on your systems configuration and env needs, I suggest you can check some resources on how to setup jmeter test with configuration of env

  • @ashitaagrawal3114
    @ashitaagrawal3114 4 роки тому

    Hi Raghav. I'm using Jmeter 5.1.1 and create.rmi.keystore.bat is not opening on windows. Please assist asap.

    • @RaghavPal
      @RaghavPal  4 роки тому

      What is the error message Ashita

    • @ashitaagrawal3114
      @ashitaagrawal3114 4 роки тому +1

      @@RaghavPal Keystore was missing in the folder..it got resolved..thanks a lot!

  • @princechopper8110
    @princechopper8110 3 роки тому

    Hi Raghav,
    I tried running the create-rmi-keystore.bat in master, i am encountering this error.:
    'keytool' is not recognized as an internal or external command, operable program or batch file. :(
    Requesting for your assistance.
    Thank you.

    • @RaghavPal
      @RaghavPal  3 роки тому +1

      Hi Prince, Add your JDK's /bin folder to the PATH environmental variable. You can do this under System settings > Environmental variables, or via CLI:
      set PATH=%PATH%;C:\Program Files\Java\jdk1.7.0_80\bin
      Close and reopen your CLI window

    • @princechopper8110
      @princechopper8110 3 роки тому

      @@RaghavPal thank you Raghav. Apprciated your response. Very helpful.
      Another thing. Does using master and slave set up means they should be on the same subnet? I tried setting up this using same subnet. Workstation to workstatio set up. It works.
      But when using workstatio to server (in different geo location and subnet). It's not working.
      Again.. Thank Raghav for your responses..

  • @hayaulislam
    @hayaulislam 4 роки тому

    Rmi create keystore. Bat file is not opening in windows.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Are you getting any specific error or message. Pls check if anything from here helps you - stackoverflow.com/questions/57704337/running-create-rmi-keystore-bat-file-in-jmeter-bin-folder-not-working

  • @dhanasekars6275
    @dhanasekars6275 4 роки тому

    Hi Raghav,
    while running in GUI mode response data is not coming in view results tree and while running is non GUI mode after adding the jtl file in view results tree both request and response are not coming only sample results came.suggest some solution.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Dhana, are you facing something like this - stackoverflow.com/questions/26972685/jmeter-view-results-tree-doesnt-return-anything-in-response-data

    • @dhanasekars6275
      @dhanasekars6275 4 роки тому

      Even for passed sample request also not showing the response data .Now I resolved showing request and response headers by enabling the jmeter.save.saveservice.requestHeader, jmeter.save.saveservice.responseHeader, even after enabling jmeter.save.saveservice.response_data=true it's not showing the response body in view result tree

    • @RaghavPal
      @RaghavPal  4 роки тому

      I hope you have expanded the request and are looking in the response tab. You can check logs for more info

  • @chandandc6261
    @chandandc6261 4 роки тому

    Hi Raghav,
    Should I have the parameter files on slave machine?

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Hi Chandan, as mentioned in the video, you just need to take care of following:
      - all systems (master and slaves) have same ver of JMeter
      - all systems have java (preferably same ver)
      - all systems can connect to each other (are in same subnet)
      - no need to copy jmeter script (jmx) to slave systems
      - If you want to have 100 users and using 2 slaves. Give no as 50

    • @chandandc6261
      @chandandc6261 4 роки тому

      @@RaghavPal Thanks for the reply Raghav....but found out that I was getting an error while running the .jmx file through the slave as it was not able to find the parameter file in the slave machine. Later on when I had the parameter file in the slave machine, without the .jmx file in the slave, the test ran fine....Could u please check on it?

  • @sandeeppuppala4026
    @sandeeppuppala4026 4 роки тому

    Hi Raghav, firstly thank you for this informative video.
    When I try to run a Http request from master, I am getting "No object in the table" exception. I am running Master on one 2012 R2 server and Slave on another 2012 R2 Server both hosted on same network. I have changed the remote host to slave server with 1242 port and created the jks file using create-rmi.bat in master. Copied the .jks file to slave and changed the server.rmi.localport to 1242 on slave and executed.
    please help me with this issue.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Sandeep,
      Looks like some setup issue. Can you try all the steps fresh and check

    • @sandeeppuppala4026
      @sandeeppuppala4026 4 роки тому

      @@RaghavPal Hi Raghav, I have tried multiple time. Infact i have changed master as slave n tried repeating the same. But the issue remains same

    • @sandeeppuppala4026
      @sandeeppuppala4026 4 роки тому

      Hi Raghav, thank you for the suggestion. I have observed that if we change the default server port in slave, the master is not able to hit it whereas when we run as a default port, it is working fine.

  • @sajiththiwanka7516
    @sajiththiwanka7516 5 років тому

    Hello sir,
    Your video is very help full.
    I followed your steps 4 correctly up-to step working fine in local pc,
    but when i try to run on remote pc (Slave) it pop-up error message (Error initialising remote server 192.168.*.***)
    "error during JRMP connection establishment;nested exception is: "
    "javax.net.ssl.SSLHanddhakerExeption: .............."
    Thanks.

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Sajith, looks like the 2 system cannot connect to each other. check if they are on same network

  • @snehaswapna1869
    @snehaswapna1869 Місяць тому

    Pls help him as a slave I am using Linux machine where it will have public and private ip in masterI am using the private ip in remote_hosts I have followed the step as shown in video but still I am getting connection refused to host

    • @RaghavPal
      @RaghavPal  Місяць тому

      It seems you're encountering a "Connection refused to host" issue while setting up JMeter in distributed mode. Let's troubleshoot this! Here are some steps to check:
      1. Start JMeter Server on the Slave Machine:
      - Ensure that you've started the JMeter server on the slave machine. You can do this by executing `jmeter-server` in the `/bin` folder of JMeter on the slave machine. For Windows, run `jmeter-server.bat`, and for Linux, use `./jmeter-server`.
      2. Check Network Connectivity:
      - Confirm that the master and slave machines can communicate with each other. You mentioned that you've tried pinging from master to slave and vice versa, which is a good start.
      3. Configuration in jmeter.properties:
      - On the master (client) machine, add the following to `jmeter.properties`:
      ```
      remote_hosts=192.168.0.139:1099
      server_port=1099
      ```
      - On the slave machine, set `server_port=1234` in its `jmeter.properties`.
      4. Same JMeter Version:
      - Ensure that both master and slave machines are running the same version of JMeter.
      5. Same Subnet and Similar Environment:
      - The two systems should be on the same subnetwork and as similar as possible (same OS, directory tree, etc.).
      6. Check the IP Address:
      - Verify that the IP address you're using for the slave (e.g., 192.168.0.139) is correct.
      7. Dynamic Ports:
      - Remember that the slaves connect to the server on dynamic ports to return sample data.

  • @poornithiyagaraj7625
    @poornithiyagaraj7625 2 роки тому

    hi,
    I followed the steps u mentioned. but when i try to run am getting this error.
    java.net.SocketException: Permission denied: connect

    • @RaghavPal
      @RaghavPal  2 роки тому

      Can be due to permission issue

    • @poornithiyagaraj7625
      @poornithiyagaraj7625 2 роки тому

      @@RaghavPal if i disconnect my VPN am able to... So with VPN what change i ve to do to make it work.

    • @RaghavPal
      @RaghavPal  2 роки тому

      This can help rolfje.wordpress.com/2012/02/16/distributed-jmeter-through-vpn-and-ssl/
      stackoverflow.com/questions/39184050/jmeter-and-vpn-connection

  • @user-qo3pc8cx8k
    @user-qo3pc8cx8k 4 місяці тому

    Hey Raghav, At the time of RMI key generation script gets terminated automatically on the step of password entered.It will not ask for the password. Facing an issue in my Windows 11 HP laptop and using apache-jmeter-5.5. Please help here

    • @RaghavPal
      @RaghavPal  4 місяці тому

      Zeal
      The error message you mentioned indicates that the `keytool` command is not recognized. We'll address this step by step:
      1. Ensure `keytool` is in Your Windows PATH:
      - The `keytool` utility is part of the Java Development Kit (JDK) or Java Runtime Environment (JRE).
      - Make sure that the directory containing `keytool` is included in your system's PATH environment variable.
      - To set the PATH temporarily for your current session, open a Command Prompt and run:
      ```
      set PATH="path\to\bin\folder\of\your\JDK\or\JRE\installation";%PATH%
      ```
      - Replace `"path\to\bin\folder\of\your\JDK\or\JRE\installation"` with the actual path to your JDK or JRE installation.
      2. Disable Secure RMI Communication (Optional):
      - If you don't need secure RMI communication between JMeter master and slave machines (which is often the case), you can disable it.
      - Add the following line to your `user.properties` file (located in the JMeter bin folder):
      ```
      server.rmi.ssl.disable=true
      ```
      - This disables secure RMI communication. Most users don't need it and disabling it reduces overhead.
      3. Verify the RMI Keystore:
      - After running the `create-rmi-keystore.bat`, check if the `rmi_keystore.jks` file is generated in the JMeter bin folder.
      - If it's not there, ensure that the script executed successfully.
      4. Restart JMeter:
      - Close any open JMeter instances and restart it.
      - Try running the RMI key generation script again.
      5. Test the RMI Connection:
      - Once the keystore is generated, test the RMI connection between master and slave machines.
      - Ensure that the JMeter master and all slave machines have the same keystore configuration.
      Remember to verify the steps above, especially the `keytool` in your PATH. If you don't specifically need secure RMI communication, disabling it simplifies the setup.
      ..

    • @user-qo3pc8cx8k
      @user-qo3pc8cx8k 4 місяці тому

      @@RaghavPal Its working now It has issues related to Java version in my windows laptop. After setting JAVA 8 RMI key is generated. Thanks for the quick reply.

  • @luisarturocardenasmiranda6459
    @luisarturocardenasmiranda6459 5 років тому

    Good morning, I did everything in the video but I still get this message Exception creating connection to 127.0.0.1; nested exception is: java.ioFileNotFounderException: rmi_keystore.jks (No such file or directory) the weird thing is that it asks me the address 127.0.0.1 and I do not know what to do, help me, in properties this is the same as you did.

    • @luisarturocardenasmiranda6459
      @luisarturocardenasmiranda6459 5 років тому +1

      the weird thing is that he does not ask for a password when creating the keystore rmi

    • @luisarturocardenasmiranda6459
      @luisarturocardenasmiranda6459 5 років тому

      Another problem is that I do not get the run start, I just get the run start all
      my version of jmeter is 2.5

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Luis, you need to create the rmi_keystore file and place it on the node (server) machines also. You also need to run server file on nodes. Also check you are having same ver of jmeter on all systems
      In case you still do not get this. Try to see the logs to troubleshoot

  • @ramakrishnants7826
    @ramakrishnants7826 4 роки тому

    Connection refused to host: 192.168.1.1; nested exception is:
    java.net.ConnectException: Connection refused: connect
    I am getting this error. Followed the same steps. both master and slave on same system. Plz help

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Ram, check if this helps you - stackoverflow.com/questions/23513679/jmeter-remote-connection-throwing-connection-refused-to-host

  • @sudarshanshenoy1598
    @sudarshanshenoy1598 3 роки тому

    I am getting error non JRMP server at endpoint on master machine

    • @RaghavPal
      @RaghavPal  3 роки тому

      This can help - stackoverflow.com/questions/51304421/jmeter-distribtion-testting-on-linux

  • @pandithatchinadhanasekar8016
    @pandithatchinadhanasekar8016 4 роки тому

    Hi Sir,
    After providing serval answers under *create rmi-keystore* I unable to see *rmi-keystore.jks* file in my bin folder.
    As per your vidoe this *.jks* is automatic generated file.
    Kindly help me to resolve this issue

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Hi, hope you have done as instructed in the video. I will suggest to explore more on the internet

    • @pandithatchinadhanasekar8016
      @pandithatchinadhanasekar8016 4 роки тому +1

      @@RaghavPal yes sir follow each and every steps mentioned in the vidoe

  • @balachandrankandasamy824
    @balachandrankandasamy824 4 роки тому

    Facing following error while connecting to remote server machi using GUI
    Error Message:
    error during JRMP connection establishment; nested exception is:
    javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake

    • @RaghavPal
      @RaghavPal  4 роки тому +1

      Hi Bala,
      Pls see if this helps - groups.google.com/forum/#!topic/ptgram24/UPohYDT2tk4
      howtodoinjava.com/security/tls12-sslhandshakeexception/

    • @balachandrankandasamy824
      @balachandrankandasamy824 4 роки тому

      @@RaghavPal I have gone through many forums and links but not able find a solution for this.

  • @Sasshi33
    @Sasshi33 5 років тому

    Hi Raghav,
    How to differentiate master and slave .here I'm using master as one system and slave as another system.how to set ip address on jmeter.properties on master and slave. Here u r using master and slave as single machine. Can uh please explain the IP address configuration on master with different slave machines.
    Thanks

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Sasshikumar. The system from where you run your test is your master and from your master you can select the slave or node systems. I have explained the steps in the video. Pls see and check where you get a issue in the proecess

    • @Sasshi33
      @Sasshi33 5 років тому

      @@RaghavPal Thanks Raghav. The entire configuration done successfully. When I run the slave machine from master machine. I am not getting response but response code shown as 200.

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi, not sure and difficult to say without looking at your setup and logs

    • @Sasshi33
      @Sasshi33 5 років тому +1

      @@RaghavPal hi Raghav, finally I got a response from slave machine . In jmeter properties file additionally we need to add as mode=standard. Thanks.

  • @NileshLotekar
    @NileshLotekar Місяць тому

    How to connect devices with jmeter?
    I need to test my native application performance
    Please provide steps
    Waiting for your response

    • @RaghavPal
      @RaghavPal  Місяць тому

      Nilesh
      To connect your Android mobile device to JMeter and test your native application's performance, follow these steps:
      1. Install JMeter:
      - Make sure you have JMeter installed on your system.
      - Ensure that your mobile device is on the same network as your system.
      2. Configure JMeter Proxy:
      - Open JMeter on your system.
      - Right-click on the "Workbench" and select "Add" > "Non-Test Elements" > "HTTP(S) Test Script Recorder."
      - Set the port for the HTTP(S) Test Script Recorder (e.g., 8087).
      3. Get Your Computer's IP Address:
      - Find your computer's IP address (you can use the `ipconfig` command on Windows or `ifconfig` on Unix-based systems).
      4. Configure Your Android Mobile Device:
      - Open the Wi-Fi settings on your mobile device.
      - Long-tap on the connected Wi-Fi network and select "Modify network."
      - Check the "Show advanced options" checkbox.
      - Change the proxy settings to "Manual."
      - Set the proxy hostname to your computer's IP address (from step 3).
      - Set the port number to the one you specified in JMeter (e.g., 8087).
      - Click "Save."
      5. Record the Mobile Application in JMeter:
      - Start the HTTP(S) Test Script Recorder in JMeter.
      - Open the application on your mobile device that you want to test (e.g., login functionality).
      - Perform the testing scenario, and JMeter will record the application actions.
      - Stop the HTTP(S) Test Script Recorder.
      6. Correct the Recorded Script:
      - Review the recorded script and make any necessary corrections.
      - Now you can run the script for load testing.
      Remember to turn off the proxy on your mobile device when you're done testing
      --

  • @neelambikalearnfun4041
    @neelambikalearnfun4041 4 роки тому

    Hi thanks it's useful. Am doing recently this remort test to telnet the server. But getting some error like this for 1of server. Javax.script.scriptException:java.net.connectException:connection timed out:connect. Any tips to solve this error.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Neelambika, is the server on the same network and is discoverable. You may need to check on the network settings.

    • @neelambikalearnfun4041
      @neelambikalearnfun4041 4 роки тому

      @@RaghavPal hi. Am actually having different RDP which is in diff location. And am trying to telnet from that system to the server. I tried in cmd prompt telnet it's working but littile bit time taking. Not sure coz of this if my jmeter scripts is failing.

    • @RaghavPal
      @RaghavPal  4 роки тому

      May be the case, If you are doing this in an organization, It will help to get help from your network admin team

    • @neelambikalearnfun4041
      @neelambikalearnfun4041 4 роки тому

      @@RaghavPal ok. Thank you. I will check

  • @BALJOTSINGH
    @BALJOTSINGH 4 роки тому

    Hi Raghav, Thanks for amazing tutorial. I am also setting up distributed system and after setup when I remote Start one of the slave I am getting this error (java.rmi.ConnectIOException: non-JRMP server at remote endpoint
    ) and I checked online I did not find any solution:

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Baljot, not sure if you have already seen this. Pls check - stackoverflow.com/questions/19831569/java-rmi-connectioexception-non-jrmp-server-at-remote-endpoint

    • @BALJOTSINGH
      @BALJOTSINGH 4 роки тому

      @@RaghavPal Hi Raghav thanks for your quick reply, but this link does not provide me the solution, do you have any other way which help me to resolve this issue. I am setting up Master slave on 2 Virtual Machines hosted on same internet.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Will have to analysze for details and setup for this

    • @BALJOTSINGH
      @BALJOTSINGH 4 роки тому

      @@RaghavPal Hi Raghav, so when I do the setup like you mentioned in the video with same machine it works.But when I use 2 different machines in same internet with firewall off, and start test on the slave, Then I got this ERROR o.a.j.e.DistributedRunner: Failed to create engine at xxx.xxx.x.115. And what I think there is need to change ports inside jmeter.properties for both Master and Slave. So, If you can try this settings and see which configuration need to be done to make it work, will be lot helpful. Thanks in advance

    • @savithrisarnala4481
      @savithrisarnala4481 Рік тому

      Hi sir how to fix java.rmi.RemoteException

  • @balachandrankandasamy824
    @balachandrankandasamy824 4 роки тому

    Can you help with the some video on server side monitoring for Linux server.

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Bala, you can use PerfMon, check this - ua-cam.com/video/xG3mVsXzCCo/v-deo.html

    • @balachandrankandasamy824
      @balachandrankandasamy824 4 роки тому

      @@RaghavPal Thank you for the reply. PerfMon can be used only for the windows server. Can it be installed on Linux servers?

    • @balachandrankandasamy824
      @balachandrankandasamy824 4 роки тому

      @@RaghavPal Can It be used for monitoring Linux servers?

  • @MuhammadNadeem-ef3dd
    @MuhammadNadeem-ef3dd Рік тому

    Hi Raghav
    Whenever i open create rmi-keystore the command prompt not opens

    • @RaghavPal
      @RaghavPal  Рік тому +1

      Hi Nadeem, try opening as administrator

    • @MuhammadNadeem-ef3dd
      @MuhammadNadeem-ef3dd Рік тому

      Thanks raghav i have tried an other way
      C:\apache-jmeter-5.5\bin>set PATH="path to java bin folder";%PATH%
      after this i opened create rmi-keystore using command line it's working fine but still giving java time out on running remote

    • @RaghavPal
      @RaghavPal  Рік тому +1

      will need to get some online help on this Nadeem, check if this helps -
      sqa.stackexchange.com/questions/14335/setting-a-connection-time-out-in-jmeter
      stackoverflow.com/questions/55214815/jmeter-master-slave-connection-time-out-error

    • @MuhammadNadeem-ef3dd
      @MuhammadNadeem-ef3dd Рік тому

      @@RaghavPal Thanks Raghav it means alot

  • @user-qt4xb3sq2t
    @user-qt4xb3sq2t Рік тому

    Hello sir in my system rmi file not opening😢 how i can i open that file

    • @RaghavPal
      @RaghavPal  Рік тому

      The rmi file in JMeter is a Java Keystore file that is used to secure communication between JMeter nodes in a distributed testing environment. The file is typically located in the JMeter installation directory, in the bin folder.
      If you are unable to open the rmi file, it is possible that you do not have the Java Runtime Environment (JRE) installed on your system. The JRE is required to run Java applications, such as the JMeter rmi file.
      To install the JRE, you can download it from the Oracle website: www.oracle.com/java/technologies/javase-downloads.html. Once the JRE is installed, you should be able to open the rmi file without any problems.
      If you are still unable to open the rmi file, it is possible that the file is corrupt. In this case, you can try to recreate the file by running the create-rmi-keystore.bat or create-rmi-keystore.sh script that is located in the JMeter installation directory, in the bin folder.
      The create-rmi-keystore script will create a new Java Keystore file and store it in the JMeter installation directory. Once the new file is created, you should be able to open it without any problems.
      Here are some troubleshooting steps you can take if you are still unable to open the rmi file:
      * Check the file permissions for the rmi file. Make sure that you have read and write permissions for the file.
      * Try opening the rmi file in a different text editor.
      * Try renaming the rmi file and then opening it.
      * Try recreating the rmi file using the create-rmi-keystore script.

  • @alohaqa7731
    @alohaqa7731 6 років тому

    Hello Sir, I got below error when I enter 'create-rmi-keystore' in cmd. Please help.

    • @RaghavPal
      @RaghavPal  6 років тому

      Hi Aloha, looks like you forgot to put in the error

    • @alohaqa7731
      @alohaqa7731 6 років тому

      Here is the error
      'keytool' is not recognized as an internal or external command,
      operable program or batch file.
      "Copy the generated rmi_keystore.jks to jmeter/bin folder or reference it in property 'server.rmi.ssl.keystore.file'"

    • @RaghavPal
      @RaghavPal  6 років тому

      Have you puth the keystore file on the node machine bin folder

    • @alohaqa7731
      @alohaqa7731 6 років тому

      I have 'create-rmi-keystore' windows batch file in Jmeter>bin folder

    • @RaghavPal
      @RaghavPal  6 років тому

      Pls check this stackoverflow.com/questions/19431788/keytool-is-not-recognized-as-an-internal-or-external-command/19432015

  • @vidulamodh1147
    @vidulamodh1147 5 років тому

    Hi Raghav,
    Thanks for nice explanation. I performed same steps in windows10. Still getting error of "connection refused"

    Below configuration:
    - Configured IP in jmeter.properties file
    - Created rmi by give name "rmi" as firstname.. & password "chnageit"
    - Execute jmeter-server.bat file in my system (bcz have only system so)
    Moreover, firewall is also off. And using wifi only.
    Waiting for quick help. Thanks in advance.

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Vidula, do you have any detailed logs for this. Its difficult to troubleshoot without logs .

  • @deepakMCA2009knit
    @deepakMCA2009knit 5 років тому

    Hey Raghav my "create-rmi-keystore.bat" file is not getting launched in windows 7 when I am clicking on it. I am using JMeter 4.0 and Java 1.8. Even command window comes for a moment and disappear in another second. I did google but didn't get correct answer.

    • @RaghavPal
      @RaghavPal  5 років тому

      This is strange Deepak, try to see if any logs got created in logs file in bin folder

    • @deepakMCA2009knit
      @deepakMCA2009knit 5 років тому

      Automation Step by Step - Raghav Pal
      Some of Log Parts given as below. I can share you my JMeter.log on your email id.
      java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_171]
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_171]
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_171]
      at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_171]
      Caused by: java.io.FileNotFoundException: rmi_keystore.jks (The system cannot find the file specified)
      at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0_171]
      at java.io.FileInputStream.open(Unknown Source) ~[?:1.8.0_171]
      at java.io.FileInputStream.(Unknown Source) ~[?:1.8.0_171]
      at java.io.FileInputStream.(Unknown Source) ~[?:1.8.0_171]
      at org.apache.jmeter.rmi.SSLRMIClientSocketFactory.loadStore(SSLRMIClientSocketFactory.java:125) ~[ApacheJMeter_core.jar:4.0 r1823414]
      at org.apache.jmeter.rmi.SSLRMIClientSocketFactory.createSocket(SSLRMIClientSocketFactory.java:83) ~[ApacheJMeter_core.jar:4.0 r1823414]
      ... 27 more
      2018-09-10 23:36:04,500 INFO o.a.j.e.DistributedRunner: Failed to configure 192.168.43.45
      2018-09-10 23:36:04,500 INFO o.a.j.e.DistributedRunner: Stopping remote engines
      2018-09-10 23:36:04,500 INFO o.a.j.e.DistributedRunner: Remote engines have been stopped
      2018-09-10 23:36:04,500 ERROR o.a.j.g.a.ActionRouter: Error processing org.apache.jmeter.gui.action.RemoteStart@64d43929
      java.lang.RuntimeException: Following remote engines could not be configured:[192.168.43.45]
      at org.apache.jmeter.engine.DistributedRunner.init(DistributedRunner.java:112) ~[ApacheJMeter_core.jar:4.0 r1823414]
      at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:80) ~[ApacheJMeter_core.jar:4.0 r1823414]
      at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:88) ~[ApacheJMeter_core.jar:4.0 r1823414]
      at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:70) ~[ApacheJMeter_core.jar:4.0 r1823414]
      at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:1.8.0_171]
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_171]
      at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_171]
      at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_171]
      at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_171]
      at java.security.AccessController.doPrivileged(Native Method) [?:1.8.0_171]
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_171]
      at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_171]
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_171]
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_171]
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_171]
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_171]
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_171]
      at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_171]
      I has the info of expected rmi.keystore.jks not the info that why create-rmi-keystore.bat is not getting launched.

    • @RaghavPal
      @RaghavPal  5 років тому

      As per this logs - FileNotFoundException: rmi_keystore.jks (The system cannot find the file specified)
      Pls check if this file is present.

    • @deepakMCA2009knit
      @deepakMCA2009knit 5 років тому

      Automation Step by Step - Raghav Pal actually I am not able to create that jks file. As you sujested the log does not has any information related to that.

    • @deepakMCA2009knit
      @deepakMCA2009knit 5 років тому

      Automation Step by Step - Raghav Pal After getting FileNotFound exception when trying to launch but windows appears and then disappear for nxt moment.

  • @nishansilva6152
    @nishansilva6152 3 роки тому

    Error in rconfigure() method java.rmi.MarshalException: error marshalling arguments; nested exception is:
    java.io.NotSerializableException: com.apple.laf.ScreenMenuPropertyListener

    • @RaghavPal
      @RaghavPal  3 роки тому

      Hi Nishan, I will need some more logs, do you see caused by section in your logs

  • @sharanbasava7632
    @sharanbasava7632 5 років тому

    Hi Raghav,
    i have followed your steps..when i run the script by making my local system as Master aswell as Slave i can run the script fine...But when i use another system i'm getting... Connection Timeout error i am not able to solve this error please provide a solution...

    • @RaghavPal
      @RaghavPal  5 років тому

      Hi Sharan, are the two systems on the same network? Can also refer this guide - www.blazemeter.com/blog/how-to-perform-distributed-testing-in-jmeter

    • @sharanbasava7632
      @sharanbasava7632 5 років тому

      Hi Raghav,Thanks for quick replay.. yes the two systems are in same network itself...but also i'm getting this error like---java.rmi.ConnectException: Connection refused to host: 169.254.234.188; nested exception is:
      java.net.ConnectException: Connection timed out: connect.pls give a solution to this

    • @sankethkn9154
      @sankethkn9154 5 років тому +2

      Hi, Even i have got same error when i run my script in remote system like connection refused... but when i run in my system as master and as well as slave its fine..can you make video for this...

    • @RaghavPal
      @RaghavPal  5 років тому

      I will try soon

    • @sharanbasava7632
      @sharanbasava7632 5 років тому +1

      @@RaghavPal Thanks...

  • @jairam3236
    @jairam3236 4 роки тому

    How to create multiple slave

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Jai, you can use the same process to add more nodes

  • @ivannoev97
    @ivannoev97 Місяць тому

    rmi does not ask me to create password, is that ok?

    • @RaghavPal
      @RaghavPal  Місяць тому

      Yes, it’s perfectly fine if RMI (Remote Method Invocation) does not prompt you to create a password during remote testing with JMeter. RMI typically uses the default security settings, which allow unrestricted access. However, in production environments, it’s essential to configure proper security measures to protect your system.

  • @amitgulhane-nd5rr
    @amitgulhane-nd5rr 3 місяці тому

    it is not asking me password

    • @RaghavPal
      @RaghavPal  3 місяці тому

      Where exactly Amit
      will need more details on this

  • @i_am_reshad
    @i_am_reshad 2 роки тому

    you should avoid executing jmeter on 2 same machines

    • @RaghavPal
      @RaghavPal  2 роки тому

      Yes, I did this for example,

    • @i_am_reshad
      @i_am_reshad 2 роки тому

      @@RaghavPal thank you for your response. I commented because of too many people starts from scratch and think that this is what they should do

    • @RaghavPal
      @RaghavPal  2 роки тому

      Ok, although I have mentioned this in the video, I will take this feedback

  • @sriharivankayalapati873
    @sriharivankayalapati873 4 роки тому

    Hi Raghav,
    I have one question.
    While running the distribution load testing in jmeter. Master and slave connect I want to collect results from each machine and as well as combined results.
    Is there any way to collect the results in this way?
    Can you please explain how it's possible?

    • @RaghavPal
      @RaghavPal  4 роки тому

      Hi Srihari, usually all results come to master. Will check online if there are more options