javax.net.ssl.SSLHandshakeException:使用JMeter进行负载测试时,在握手期间远程主机关闭连接
我正在使用web应用程序的JMeter进行负载测试,该应用程序托管在配置了SSL的Tomcat7上 对于100200300500 https get请求,我的负载测试工作正常,URL如下: 但是,当我尝试放置更多的负载(例如600个或大于600个请求)时,我得到以下错误作为一些get请求的响应,而一些get请求具有正确的响应数据:javax.net.ssl.SSLHandshakeException:使用JMeter进行负载测试时,在握手期间远程主机关闭连接,java,tomcat,ssl,Java,Tomcat,Ssl,我正在使用web应用程序的JMeter进行负载测试,该应用程序托管在配置了SSL的Tomcat7上 对于100200300500 https get请求,我的负载测试工作正常,URL如下: 但是,当我尝试放置更多的负载(例如600个或大于600个请求)时,我得到以下错误作为一些get请求的响应,而一些get请求具有正确的响应数据: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:436)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:107)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:517)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:331)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1135)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.InputRecord.read(Unknown Source)
... 20 more
您能告诉我,为什么我会出现上述错误,错误中提到的远程主机是谁
我的tomcat服务器的最大线程数为300,接受计数为100 这正是当系统负载过大时开始发生的事情。”“远程主机”指tomcat实例
要么接受500个连接是您的系统将要处理的最多连接,要么开始研究扩展。这可能是Tomcat中最近修复的一个错误。请看一看,看看它是否符合您的问题