我们正在尝试测试一个拥有5k+用户的web应用程序,但是我们得到的错误数低于
•非HTTP响应代码:org.apache.http.conn。HttpHostConnectException/非HTTP响应消息:Connect to beta.headlite.com:443 [beta.headlite.com/xx.xx.xxx.xx] failed: Connection timed out: Connect•非HTTP响应代码:java.net.BindException/非HTTP响应消息:Address already in use: connect•非HTTP响应码:javax.net.ssl.SSLProtocolException/非HTTP响应消息:Read timed out•非HTTP响应代码:javax.net.ssl.SSLProtocolException/非HTTP响应消息:Connection reset(大多数示例失败与此错误)
我们在属性文件中更改了下面的设置,并将堆内存增加到12GB用户。属性文件--------------------
`server.rmi.ssl.disable=True`
`mode=Standard`
`jmeter.save.saveservice.autoflush=true`
`httpclient4.retrycount=3`
`hc.parameters.file=hc.parameters`
`http.connection.stalecheck$Boolean=true`
`httpclient.timeout=300000`
Jmeter。属性文件--------------------
`httpsampler.max_redirects=20 httpclient4.retrycount=1`
`httpclient.timeout=300000`
`https.sessioncontext.shared=true`
`https.default.protocol=TLSv1.2`
`https.socket.protocols=TLSv1 TLSv1.2`
`https.use.cached.ssl.context=true`
HC参数文件--------------------
`http.connection.stalecheck$Boolean=true`
Connection timed out: connect
意味着你的应用程序无法在超时范围内响应,你需要增加它,即HTTP请求默认值: java.net.BindException/Non HTTP response message: Address already in use
-很可能你已经用完了空闲端口Connection reset
-最有可能的是连接点1,如果你认为在测试的系统是罪魁祸首-你可以尝试从JMeterSocketClosed wiki页面实现解决方案