Software Testing Class

Best Practices from JMeter – JMeter Tutorials Series Day 11

In JMeter tutorial series learn Best Practices from JMeter. Procedure to reduce limitations of JMeter in distributed environment, following are the guidelines will assist in creating a real and continuous load:

Best Practices from JMeter
Best Practices from JMeter

JMeter has some limitations especially with distributed environment. To use JMeter powerfully for testing, follow these guidelines,

Limit the Number of Threads

System’s hardware has capability to limit the number of threads which you run effectively with JMeter. It depends on how fast the server is (a faster server makes JMeter to work fast and response quickly). Due to overload of work on JMeter, each thread has to wait to get access to the CPU and more inflated the timing info gets.

Use a proxy server

The Proxy server benefits you to take out definite common elements from the recorded samples. Furthermore, it is beneficial features to record your testing.

Using variables

There are some test plans essential to use different values for different users/threads. For example, If you like to test a sequence that needs a unique login for each user. This is simple to do using variables.

Decrease resource necessity

The GUI mode of the system takes a lot of computer memory under heavy load,origins performance issues.

These are some guidelines to decrease resource requirement:

Check the JMeter logs

Any errors of the test plan or test execution should be recorded in the log files. Checking the log file assist you to discovery the error first.

Erase the local path from CSV Data Set Config

If you are using an existing CSV data file which you produced on your local computer, you should delete the current local path (Current path of CSV file). If you don’t delete the local path, JMeter cannot find the CSV data file on your local PC.

Follow file naming convention

Save test plan with simple file name, use only alphanumeric characters.


⇓ Subscribe Us ⇓


If you are not regular reader of this website then highly recommends you to Sign up for our free email newsletter!! Sign up just providing your email address below:


 

Check email in your inbox for confirmation to get latest updates Software Testing for free.


  Happy Testing!!!
 
Exit mobile version