2015-05-21 76 views
0

我正在使用我的web應用程序的JMeter進行負載測試,該應用程序在配置了SSL的tomcat 7上託管。javax.net.ssl.SSLHandshakeException:遠程主機在加載握手過程中關閉連接使用JMeter進行測試

我的負載測試工作正常進行100200300500個HTTPS GET請求,URL低於:

https://testapi.myapp.com/myapptor/tempo/getinfo?id=4E92D41E&groupid=test

但是當我嘗試把更多的負載說600或大於600名的請求,我得到以下錯誤作爲響應對於一些GET請求,而一些具有正確的響應數據的GET請求的:

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

回答

0

這正是啓動當負載爲您的系統過大發生那種事。 '遠程主機'是指tomcat實例。

要麼接受500個連接是您的系統將處理的最多,要麼開始調查擴大規模。

0

這可能是最近修復的Tomcat中的一個錯誤。請看看this bug report,看看它是否符合你的問題。

相關問題