LR错误:“Error: System.err: java.net.ConnectException: Connection timed out”
在Win8.1使用LR11的java Vuser脚本做性能测试时,发现大概150个虚拟用户之内不出错,超过之后就报以下错误。尝试修改服务器端tomacat的连接数(maxThreads等)等办法无果,哪位大大可有解决办法,不甚感激额!Error: System.err: java.net.ConnectException: Connection timed out: connect
Error: at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:411)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:525)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:208)
at sun.net.www.http.HttpClient.New(HttpClient.java:291)
at sun.net.www.http.HttpClient.New(HttpClient.java:310)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:987)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1031)
at cn.com.cherish.module.utils.HttpRequester.send(HttpRequester.java:159)
at cn.com.cherish.module.utils.HttpRequester.sendPost(HttpRequester.java:95)
at test.cn.com.cherish.business.LoginBaseTest.get(LoginBaseTest.java:133)
建议楼主看下是不是应用的Socket链接数有限制。跟tomacat的关系应该不大
页:
[1]