Jmeter 5.0 遇见connection reset问题

问题:大并发时遇见java.net.SocketException: Connection reset at Jmeter

测试过程中经常遇见connection reset ,原因是大数据量发送时,服务器不能接纳那么多请求。

root cause:

I supposed it happens because server can’t handle large load. By some reason server resets connection but it is not fail of JMeter.

There are at least 3 possibles reasons:

Most probable cause : Your server (meaning web servers handling request and any components after them) is not handling the load correctly and slowing down, monitor the system and check

You have exhausted your injector ephemeral ports , you need to adjust your OS TCP settings to increase port range

You’re running load test in GUI mode with a View Results Tree in test, this is bad practice as GC will happen frequently possibly triggering Stop The World leading to this. As per best-practices use NON GUI mode:

https://jmeter.apache.org/usermanual/best-practices.html
https://www.ubik-ingenierie.com/blog/jmeter_performance_tuning_tips/

猜你喜欢

转载自blog.csdn.net/qq_39991552/article/details/88415756