简体   繁体   English

通过Jmeter进行负载测试时,Tomcat 7中的连接拒绝错误

[英]Connection refused error in Tomcat 7 while doing load testing through Jmeter

My application is pointing to cloudant DB which supports high active connections. 我的应用程序指向支持高活动连接的cloudant DB。 When I am trying to hit 500 concurrent hits, my API shows, 当我尝试同时击中500次时,我的API会显示,

org.apache.http.conn.HttpHostConnectException: Connection to https://Testing.com:xxx refused
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:645)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:286)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1077)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:428)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
at java.lang.Thread.run(Unknown Source)

Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:549)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
    ... 12 more

In tomcat server.xml, My max threads is 500, acceptCount is 500 and connection timeout is 20000. Still it shows the above mentioned error. 在tomcat server.xml中,我的最大线程数为500,acceptCount为500,连接超时为20000。它仍然显示上述错误。 I could see a pattern like only those threads between 100-250 are getting failed in consecutive runs. 我可以看到一个模式像在连续的操作也越来越失败只有100-250之间的那些线程。 Can someone please help me on this 有人可以帮我吗

Jmeter执行摘要报告-500个线程

Please check Database connection pool maxtotal. 请检查数据库连接池maxtotal。 It might be less and you may need to increase it. 它可能更少,您可能需要增加它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Apache Tomcat连接使用JMeter对1000个用户进行负载测试时拒绝错误 - Apache Tomcat Connection Refused error while load testing with 1000 users using JMeter 连接到 jmeter 从站 docker 容器时出现连接被拒绝错误 - Connection refused error while connecting to jmeter slave docker container ConnectException:连接被拒绝(连接被拒绝) - 通过Jedis连接到Redis - ConnectException: Connection refused (Connection refused)- While connecting to Redis through Jedis tomcat10主页无法通过键入localhost加载:8080错误:ERR_CONNECTION_REFUSED - tomcat10 home page can not load by typing localhost:8080 error: ERR_CONNECTION_REFUSED Tomcat 7拒绝连接 - Connection refused with Tomcat 7 使用jmeter远程测试触发连接拒绝错误 - Remote test using jmeter triggers Connection refused error JMeter的线程(用户)参数增加时连接被拒绝错误 - Connection refused error when number of threads(users) parameter of JMeter increased 运行 jmeter 分布式负载测试时出错 - Error when runnint jmeter distributed load testing Spring Integration TCP 连接在多线程负载/压力测试下被拒绝 - Spring Integration TCP connection refused under multithreaded load/stress testing 尝试在Mac OS X上通过GelenoDriver与Selenium一起使用firefoxprofile时出现“未知错误”,“消息”:“连接被拒绝”,“堆栈跟踪” - “unknown error”,“message”:“connection refused”,“stacktrace” while trying to use firefoxprofile through GeckoDriver with Selenium on Mac OS X
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM