测试积点老人 发表于 2019-10-18 10:22:45

用jmeter做200并发测试时会出现失败事务

java.net.ConnectException: Connection timed out: connect
         at java.net.DualStackPlainSocketImpl.connect0(Native Method)
         at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
         at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
         at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:121)
         at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
         at org.apache.jmeter.protocol.http.sampler.hc.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:318)
         at org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:114)
         at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
         at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
         at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
         at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
         at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:697)
         at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:455)
         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1189)
         at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1178)
         at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:490)
         at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:416)
         at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:250)
         at java.lang.Thread.run(Unknown Source)
请大神们帮我分析一下,这是什么原因引起的?该怎么解决?

arlene_peng6 发表于 2019-10-18 14:12:57

是不是连接数的问题?

bellas 发表于 2019-10-21 09:24:16

在抓包或者看API文档查看该请求中的IP、路径和Parameters的时候,并没有找到Jmeter请求的错误,之后查看了请求的服务端后才发现,由于请求的参数是复制黏贴,黏贴时参数最后多了一个空格,导致了请求的失败

litingting0214 发表于 2019-10-21 10:09:15

服务器压力达不到

qqq911 发表于 2019-10-21 10:39:04

连接超时

jingzizx 发表于 2019-10-21 12:47:21

看占用情况

你好浮戈 发表于 2019-10-21 13:46:49

查看是不是占用满了
页: [1]
查看完整版本: 用jmeter做200并发测试时会出现失败事务