agent在别的机器安装,运行压测会报错

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

agent在别的机器安装,运行压测会报错

hoohyou
 
第一个代理是安装在我的本地机器,第二个代理是安装在其他机器上

跑压测(就是简单的https://www.baidu.com)
如果挂的代理是我本地的代理,正常运行
如果挂的代理是其他机器的代理,就会报错。

报错信息如下:
javax.net.ssl.SSLException: Received fatal alert: unexpected_message
        at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:3147) ~[grinder-httpclient-3.9.1.jar:na]
        at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:2883) ~[grinder-httpclient-3.9.1.jar:na]
        at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:2675) ~[grinder-httpclient-3.9.1.jar:na]
        at HTTPClient.HTTPConnection.Get(HTTPConnection.java:986) ~[grinder-httpclient-3.9.1.jar:na]
        at net.grinder.plugin.http.HTTPRequest$2.doRequest(HTTPRequest.java:504) ~[grinder-http-3.9.1.jar:na]
        at net.grinder.plugin.http.HTTPRequest$AbstractRequest.getHTTPResponse(HTTPRequest.java:1276) ~[grinder-http-3.9.1.jar:na]
        at net.grinder.plugin.http.HTTPRequest.GET(HTTPRequest.java:499) ~[grinder-http-3.9.1.jar:na]
        at net.grinder.plugin.http.HTTPRequest.GET(HTTPRequest.java:474) ~[grinder-http-3.9.1.jar:na]
        at net.grinder.plugin.http.HTTPRequest$GET$1.call(Unknown Source) ~[na:na]
        at TestRunner.test(TestRunner.groovy:67) ~[na:na]
        at net.grinder.scriptengine.groovy.junit.GrinderRunner.run(GrinderRunner.java:170) ~[ngrinder-groovy-3.4.1.jar:na]
        at net.grinder.scriptengine.groovy.GroovyScriptEngine$GroovyWorkerRunnable.run(GroovyScriptEngine.java:147) ~[ngrinder-groovy-3.4.1.jar:na]
        at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:118) ~[grinder-core-3.9.1.jar:na]
2018-08-16 16:11:09,554 INFO  before thread. init headers and cookies
2018-08-16 16:11:09,554 INFO  shut down
2018-08-16 16:11:09,554 INFO  finished 222 runs
2018-08-16 16:11:09,556 INFO  elapsed time is 12613 ms
2018-08-16 16:11:09,556 INFO  Final statistics for this process:
2018-08-16 16:11:09,585 INFO  
             Tests        Errors       Mean Test    Test Time    TPS          Mean         Response     Response     Mean time to Mean time to Mean time to
                                       Time (ms)    Standard                  response     bytes per    errors       resolve host establish    first byte  
                                                    Deviation                 length       second                                 connection                
                                                    (ms)                                                                                                    

Test 1       0            1107         �            0.00         0.00         �            0.00         0            �            �            �             "www.baidu.com"

Totals       0            1107         �            0.00         0.00         �            0.00         0            �            �            �            

  Tests resulting in error only contribute to the Errors column.          
  Statistics for individual tests can be found in the data file, including
  (possibly incomplete) statistics for erroneous tests. Composite tests  
  are marked with () and not included in the totals.  

Reply | Threaded
Open this post in threaded view
|

Re: agent在别的机器安装,运行压测会报错

junoyoon
Administrator
Um.. what's the JDK version in the other machine?
I think JDK1.7 or above is necessary for latest SSL handshaking.
Reply | Threaded
Open this post in threaded view
|

Re: agent在别的机器安装,运行压测会报错

hoohyou


脚本是自动生成的,验证也是没问题的。
但如果跑压测,放在其他机器上跑就会挂掉。
对应机器上的Java版本是1.8

是不是要在脚本里加上对https的支持啊?
Reply | Threaded
Open this post in threaded view
|

Re: agent在别的机器安装,运行压测会报错

junoyoon
Administrator
Well... I'm not a god who knows everything.

However..
I remember baidu had a special mechanism to block DDoS attack.
I think baidu handled well when you attacked baidu. :-)
Reply | Threaded
Open this post in threaded view
|

Re: agent在别的机器安装,运行压测会报错

hoohyou
嗯嗯,谢谢~