执行压力测试的Springboot应用程序设置

xoshrz7s  于 2023-01-26  发布在  Spring
关注(0)|答案(1)|浏览(138)

我想问一下springboot应用程序属性的正确设置是什么来执行压力测试?因为当我的springboot rest服务器上的样本达到16 k时,我经常从我的Jmeter中得到这个错误,而且我在jmeter线程组上做了5分钟的100 thread/s。谢谢

java.net.BindException: Address already in use: connect
    at java.base/sun.nio.ch.Net.connect0(Native Method)
    at java.base/sun.nio.ch.Net.connect(Net.java:579)
    at java.base/sun.nio.ch.Net.connect(Net.java:568)
    at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:588)
    at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
    at java.base/java.net.Socket.connect(Socket.java:633)
    at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
    at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl$JMeterDefaultHttpClientConnectionOperator.connect(HTTPHC4Impl.java:404)
avwztpqn

avwztpqn1#

很可能您已用完出站端口。
有关如何增加回收时间和/或减少回收时间,请查看操作系统文档。
示例建议可在Solved “java.net.BindException: Address already in use: connect” issue on WindowsHandling "exhausting available ports" in Jmeter中找到
或者,您可以分配另一台计算机并考虑切换到JMeter Distributed Testing

相关问题