In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to use jmeter's OOM and monitor". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian and go deep into it slowly to study and learn "how to use jmeter's OOM and monitor" together!
OOM
OutOfMemoryError memory overflow issues are sometimes encountered when performing stress tests.
Optimizations can be made by adjusting JVM memory parameters, which are configured in the jmeter.bat startup file.
Open jmeter.bat as text and modify the following configuration items:
Resize heap memory HEAP:
Adjust the default set HEAP=-Xms512m -Xmx512m to set HEAP=-Xms1024m -Xmx1024m;
Resize Cenozoic NEW in heap memory:
Adjust the default set NEW=-XX:NewSize=128m -XX:MaxNewSize=128m to set NEW=-XX:NewSize=256m -XX:MaxNewSize=256m;
Resize the PERM in heap memory:
Adjust the default set PERM=-XX:PermSize=64m -XX:MaxPermSize=128m to set PERM=-XX:PermSize=128m -XX:MaxPermSize=256m;
Restart jmeter after modification, oom problem can generally be solved (parameter adjustment is not the bigger the better, specific according to the hardware configuration of the tester to decide, step by step).
Use of Listeners
Listeners are used to collect sampler result data and present result graphs. The most commonly used ones are viewing result trees, aggregate reports, and so on.
The listeners themselves execute once after each sampler run, meaning that the more listeners in a test plan, the more expensive it is to run (especially looking at the result tree and tabulating results, etc.).
Therefore, when actually executing a test plan, disable unwanted listeners before starting execution;
Or you can enable only one listener at runtime and write the generated results to a file, and then you can use different listeners to present the saved result data.
However, in practice, when the concurrency is large, or when stability testing is carried out, it is best to remove or disable all listeners, and judge whether the request is successful according to the assertion result. The test report is in the form of a report in the plugins plug-in, or in the form of text, so as to improve the accuracy of the test result.
Thank you for reading, the above is "jmeter OOM and how to use the monitor" content, after the study of this article, I believe we have a deeper understanding of jmeter OOM and how to use the monitor, the specific use of the situation also needs to be verified. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.