尝试加载超过200个用户时出错

时间:2015-06-01 10:55:27

标签: jmeter

当我尝试对超过200个用户进行负载测试时,我遇到了错误 我的系统配置:8GB RAM,1 TB HDD,Core i5
请帮我解决这个错误。

  

org.apache.http.conn.HttpHostConnectException:连接到   http://www.xxxxxx.ac.in拒绝了       at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)       at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)       at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)       在org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)       at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)       在org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)       at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:481)       at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:298)       at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)       at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1105)       at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1094)       在org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)       在org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)       在java.lang.Thread.run(未知来源)

Caused by: 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:127)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)

1 个答案:

答案 0 :(得分:0)

日志说明了一切:与服务器的连接超时,即它没有在合理的时间内响应,这可能意味着它的负载过高。

要解决此问题,您需要修复服务器。但究竟你需要解决的是什么,这里无法确定,对于SO来说太长了。