Apache httpd connection refused during stress test using jmeter -
now, stress test using jemter in windows(jmeter.bat).
number of threads = 100 ramp-up period = 0 loop count = 1000
but raise connection refused error in jmeter, after 20~30 seconds. can not find connection refused error in /usr/local/apache/logs/error.log or /usr/local/apache/logs/access.log.
test http get, index.html("it's works") apache mpm worker , setting below:
<ifmodule mpm_worker_module> startservers 8 minsparethreads 64 maxsparethreads 1024 threadsperchild 64 maxrequestworkers 512 maxconnectionsperchild 0
jmeter problem? apache setting problem?
jmeter exception below:
org.apache.http.conn.httphostconnectexception: connection https://checkout.teledit.com refused @ org.apache.http.impl.conn.defaultclientconnectionoperator.openconnection(defaultclientconnectionoperator.java:190) @ org.apache.http.impl.conn.managedclientconnectionimpl.open(managedclientconnectionimpl.java:294) @ org.apache.jmeter.protocol.http.sampler.measuringconnectionmanager$measuredconnection.open(measuringconnectionmanager.java:107) @ org.apache.http.impl.client.defaultrequestdirector.tryconnect(defaultrequestdirector.java:643) @ org.apache.http.impl.client.defaultrequestdirector.execute(defaultrequestdirector.java:479) @ org.apache.http.impl.client.abstracthttpclient.execute(abstracthttpclient.java:906) @ org.apache.http.impl.client.abstracthttpclient.execute(abstracthttpclient.java:805) @ org.apache.jmeter.protocol.http.sampler.httphc4impl.executerequest(httphc4impl.java:517) @ org.apache.jmeter.protocol.http.sampler.httphc4impl.sample(httphc4impl.java:331) @ org.apache.jmeter.protocol.http.sampler.httpsamplerproxy.sample(httpsamplerproxy.java:74) @ org.apache.jmeter.protocol.http.sampler.httpsamplerbase.sample(httpsamplerbase.java:1146) @ org.apache.jmeter.protocol.http.sampler.httpsamplerbase.sample(httpsamplerbase.java:1135) @ org.apache.jmeter.threads.jmeterthread.process_sampler(jmeterthread.java:434) @ org.apache.jmeter.threads.jmeterthread.run(jmeterthread.java:261) @ java.lang.thread.run(unknown source) caused by: java.net.connectexception: connection timed out: connect @ java.net.dualstackplainsocketimpl.connect0(native method) @ java.net.dualstackplainsocketimpl.socketconnect(unknown source) @ java.net.abstractplainsocketimpl.doconnect(unknown source) @ java.net.abstractplainsocketimpl.connecttoaddress(unknown source) @ java.net.abstractplainsocketimpl.connect(unknown source) @ java.net.plainsocketimpl.connect(unknown source) @ java.net.sockssocketimpl.connect(unknown source) @ java.net.socket.connect(unknown source) @ sun.security.ssl.sslsocketimpl.connect(unknown source) @ org.apache.http.conn.ssl.sslsocketfactory.connectsocket(sslsocketfactory.java:414) @ org.apache.http.impl.conn.defaultclientconnectionoperator.openconnection(defaultclientconnectionoperator.java:180) ... 14 more
it's not jmeter issue:
check components between jmeter , apache (firewall, load balancer, ddos protection ...)
check apache settings, check rampup , see starting load errors.
Comments
Post a Comment