In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to conduct stress testing for JMeter, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
Liunx jmeter startup script jmeter.sh-n-t test.jmx-l result.jtl
Parameter description
-h help-> print out useful information and exit-n non-GUI mode-> run JMeter test in GUI mode-t test file to run JMeter test script file-l log file record result file-r remote execution starts remote service-H proxy host sets the proxy host used by JMeter-P proxy port sets the port number analysis result of the proxy host used by Jmeter
Download the generated result.jtl file to window and use the aggregate report in the window version of jmeter to view the result information.
The meaning of the test result field of JMeter
1. Label: name of the defined HTTP request
2. Samples: indicates how many requests have been sent in this test
3. Average: the average response time of the visited page
4. Min: the minimum response time for accessing the page
5. Max: the maximum response time for visiting the page
6. Number of requests with Error%: errors / total number of requests
7. Throughput: number of requests completed per second
8. KB/Sec: the amount of data received from the server per second
Problem encountered java.net.NoRouteToHostException: Cannot assign requested address
Stress test under liunx environment, found that there is erro, check the result.jtl found that there are some error messages 1509777594480 Non HTTP response code request, Non HTTP response code: java.net.NoRouteToHostException,Non HTTP response message: Cannot assign requested address (Address not available), thread group 1-378 force.This is a falseparent.It is found that there are some errors in the thread group.
Cause of error: due to the exhaustion of client connection ports assigned by liunx, socket connection cannot be established. Although socket is normally closed, the port is not released immediately, but is in TIME_WAIT state. By default, wait for 60s before release.
Check the range of client connection ports supported by liunx, that is, 28232 ports. Cat / proc/sys/net/ipv4/ip_local_port_range
32768-61000
Solution:
1. Reduce the wait time after the port is released. Default is 60s, and modify it to 15030s. Echo 30 > / proc/sys/net/ipv4/tcp_fin_timeout
two。 Modify the tcp/ip protocol configuration and release the TIME_WAIT port for the new connection by configuring / proc/sys/net/ipv4/tcp_tw_reuse, which is 0 by default and 1 by default. Echo 1 > / proc/sys/net/ipv4/tcp_tw_reuse
3. Modify ctp/ip protocol configuration to quickly reclaim socket resources. Default is 0. 0. Change to 1. Echo 1 > / proc/sys/net/ipv4/tcp_tw_recycle
This is the answer to the question about how to conduct the stress test in JMeter. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.
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.