Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The reason why there is a big difference in the results of LoadRunner running the same script twice

Shulou Source: shulou.com Published: 2022-06-03 04:36:17 11月25日 Update

If the same script is run twice, the results are very different. The response time of the latter time is much slower than that of the previous one, and the development has not modified the program to troubleshoot the problem:

1. Check the linux memory utilization free-m is to check the memory situation (usually 10% of the available memory is within the acceptable range) if the available memory is very small: one may be that there is something wrong with the program: the other is that the disk space is insufficient and the memory will be written when the disk space is insufficient.

two。 You can first see whether the second case is true: command tf-m to check the disk space and see that the disk space is zero.

3. To see which process takes up so much, it's best to analyze it through the log log. Be sure to confirm the log log level before running the performance test script. if you set debug, the program will continue to write logs, affecting the performance test results are usually set to error level, of course, if you run the script again, the results cannot be exactly the same. It is generally acceptable that the time difference is less than 100ms.

Tags: Memory result run situation disk space script log time program performance level problem test constant command best scope process process Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Technology Microsoft Shulou Information Xiaomi