当前位置: 首页 > 知识库问答 >
问题:

获取javax . net . SSL . SSL exception:SSL peer在jmeter中作为响应错误地关闭

白宏大
2023-03-14

当使用Jmeter 2.13自动化REST api时,如果一个特定请求的JSON响应非常大,我会得到如下错误。

*

javax.net.ssl.SSLException: SSL peer 在 sun.security.ssl.InputRecord.readV3Record(InputRecord.java:596) at sun.security.ssl.InputRecord.read(InputRecord.java:532) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983) at sun.security.sslsocketImpl.readDataRecord(SSLSocketImpl.java:940) at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) at org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:204) at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:177) at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:201) at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:155) at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.readResponse(HTTPSamplerBase.java:1745) at org.apache.jmeter.protocol.http.sampler.HTTPAbstractImpl.readResponse(HTTPAbstractImpl.java:412) at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:352) 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(Thread.java:748)

**

共有1个答案

张绍晖
2023-03-14

我猜视图结果树无法处理大响应。你能在下面试试吗?在 user.properties 文件中,添加以下内容:

view.results.tree.max_size=0 

重新启动 Jmeter。

 类似资料:
  • 我正在使用JMeter执行负载测试,用户应该执行启动-登录- clk仪表板页面- clk登录页面(登录后出现的页面,即主页),其中clk仪表板和clk登录页面重复操作5次。 直到30个用户,当我增加用户负载时,我没有收到任何错误,我开始收到错误,因为 响应代码:非HTTP响应代码:org.apache.HTTP.conn.HttpHostConnectException响应消息:非HTTP回应消息

  • 我从JMeter调用一个登录API,返回json格式的结果。对于这个API调用,我得到了预期的结果,但是json响应包含ï»字符。在我添加的请求中,DataType:json和Content-Type:application/json;字符集=utf-8。 任何建议。 输出Json响应

  • 有人可以使用BeanShell后处理程序和正则表达式提取器来实现它,或者如果有的话,还有任何其他方法来实现同样的方法。

  • 我有一个关于从JMeter中的html响应数据中获取某个值的问题。我一直在尝试正则表达式和xpath提取器(见下文),但没有运气。 但也不管用。我一直在考虑使用Beanshell将源代码抓取为字符串并解析数字。有什么更好的方法来抢那个号码吗?如何使用beanshell获取响应数据的源代码?我尝试使用/html的xpath,但没有成功。 多谢

  • 我无法建立我的android应用程序使用,因为我得到以下错误。昨天一切正常。你知道问题出在哪里吗?

  • 我正在我的. Net Web应用程序上运行负载测试,使用Jeter。应用程序过程:启动-登录-开始测试-回答问题 直到500个用户或有时750个用户,测试才成功运行。但是当我增加负载时,我得到一个错误: 11.111.111.111是我的服务器IP地址。 我已经将jmeter.batch文件堆内存增加到HEAP=-Xms1g-Xmx4g-XX: MaxMetaspaceSize=256m Apac