nGrinder跑http接口,跑几分钟之后,就会tps过低而停止

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

nGrinder跑http接口,跑几分钟之后,就会tps过低而停止

zhujian
nGrinder跑http接口,跑几分钟之后,就会tps过低而停止
日志中
java.net.ConnectException: Connection timed out: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method) ~[na:1.8.0_91]
        at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_91]
        at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_91]
        at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_91]
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_91]
        at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_91]
        at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_91]
        at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_91]
        at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_91]
        at java.net.Socket.<init>(Unknown Source) ~[na:1.8.0_91]
        at java.net.Socket.<init>(Unknown Source) ~[na:1.8.0_91]

但脚本中control.timeout = 999999999
并发用户只设置了10
这个是怎么回事呢?
Reply | Threaded
Open this post in threaded view
|

Re: nGrinder跑http接口,跑几分钟之后,就会tps过低而停止

ziteng
你当时的错误率是多少?错误率太高的话,继续跑了也没啥意义,这是 ngrinder 自身的设计决定的。