JMeter Interview Questions #5

Following is the set of JMeter Interview Questions #5.

Q. 21 How to reduce the memory requirement for execution using JMeter?

Ans: In order to reduce the memory requirements following are the steps:

  1. Use non-GUI mode for test execution using below command:
    jmeter –n –t test.jmx –l test.jtl
  2. Do not use listeners or disable them before starting the test.
  3. Don’t use functional mode.
  4. Try to implement scripting logic using available element only
  5. Try to avoid the code (you can use only in that case when the specific JMeter element is not available)
  6. Write the custom code in Groovy instead of BeanShell.
  7. Use CSV output rather than XML.
  8. Save the data which you really need.
  9. Use as few assertions as possible.

Q. 22 How do you record the script using Test Script  Recorder?

Ans: Below are the steps:

  1. Add HTTP(s) Test Script Recorder
  2. Enter the port number
  3. Enter the host URL
  4. Add a Recording Controller in the test plan and select the same as Target so that all the recordings are stored under it.
  5. Configure the browser with manual proxy settings pointing to the same port number used in the test script recorder
  6. Click “Start” button in HTTP(s) Test Script Recorder

Q. 23 What is distributed load testing?

Ans: The generation of a huge volume of user load is not possible using the same machine. The solution is either to increase the resources of the machine or use a distributed structure. Distributed load testing is the process through which numerous systems can be used for simulating a load of a large number of users and those systems act as load generators.

Read More …


Q. 24 What is the physical structure of distributed load testing?

Ans: Master-Slave. By using the master-slave configuration, JMeter can do distribute load testing.


Q. 25 How to do master-slave configuration in JMeter?

Ans: Master-Slave configuration is a part of Distributed Testing in which more than one machine is used to perform load testing of the server under test. It is very important that all machines are on the same network and all have the same version of JMeter. In distributed testing, one machine is made as to the Master and the others are kept as slaves by doing the below configurations:

  1. On master machine, edit the jmeter.properties file and add the IP addresses of slave machines against the remote_host field in the file.
  2. Save the file and open the JMeter again.
  3. Now from the Run menu in JMeter, select Remote Start and choose the IP of the machine to be invoked.
  4. Choose the Run menu and select Remote Start all to start all the slave machines for your testing.

You may be interested: