It is always better to follow the following best practices for smooth functioning of JMeter.

  1. Use the latest version: Always make sure to use the latest version of JMeter to ensure you have the version with the latest updates and patches.
  2. Optimum number of threads: Take care to balance the number of test cases, system capabilities and design of the test case to use the correct number of threads. This will also depend to an extent on the server speed as a fast server gives quicker response. Incorrect number of threads could also trigger ‘coordinated omission’ errors producing inaccurate results. It is better to wait till thread sampling for the thread creation.
  3. Make sure to use proper naming conventions for all the elements
  4. Browser settings should be checked for proper connectivity prior to execution
  5. Scoping Rules should be checked and designed accordingly
  6. Listeners needs to be added appropriately
  7. Try to minimise resource requirements by following the below steps
    1. Utilise the Non-GUI mode of the JMeter
    2. Minimise the use of Listeners (Disable or delete the listeners which are not required)
    3. View Results Tree listener are known to take up significant amount of memory and can be disabled or used with ‘Errors’ box checked in order to avoid freezing the console of the JMeter or the memory getting exhausted.
    4. Instead of using many small samplers, can try using variables for changing the sampler and use the same sampler in a loop.
    5. Functional mode use can be avoided
    6. Instead of XML, CSV output can be used
    7. Minimise the resource by saving only what is really required
    8. Minimise the use of Assertions
    9. JMeter graphs are found to consume significant memory and hence can be disabled. Instead use JTL tab in the web interface to view all the real time graphs
    10. If CSV Data set config is used, erase the local path
    11. Make sure to clean the Files tab before every test run