第一个代理是安装在我的本地机器,第二个代理是安装在其他机器上
跑压测(就是简单的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.