Jmeter socket exceptions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Jmeter socket exceptions

vamsi
This post has NOT been accepted by the mailing list yet.
Hi Im trying to execute 200% load test with 80 users in jmeter getting the below error but it worked fine for 100% load test with user 45.

when we are ruuning the test jmeter is getting stuck and not responding when we stop the test we are getting the below error.at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.io.BufferedInputStream.fill(Unknown Source)
        at java.io.BufferedInputStream.read(Unknown Source)
        at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
        at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
        at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
        at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
        at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        at org.apache.jmeter.protocol.http.sampler.SoapSampler.sample(SoapSampler.java:274)
        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1166)
        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1155)
        at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475)
        at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
        at java.lang.Thread.run(Unknown Source)
I had checked with  developers their is no issue at server level we tried multiple times but still it is throwing the same error and no issues at server..

i tried with all these options:
Change "Implementation" of all your HTTP Request samplers to HttpClient4. The easiest way of doing it is using HTTP Request Defaults configuration element.
Add the following properties in user.properties file which located under /bin folder of your JMeter installation:
httpclient4.retrycount=1
hc.parameters.file=hc.parameters
Add the next line to hc.parameters file (same location, JMeter's /bin folder)
http.connection.stalecheck$Boolean=true
Restart JMeter.
Your "Connection reset" problem should go away.

but still im getting the same error

can any one help me out with this error
Reply | Threaded
Open this post in threaded view
|

Re: Jmeter socket exceptions

mitsm
This post has NOT been accepted by the mailing list yet.
How are you executing your test? GUI/Non-GUI mode? If GUI mode you need to switch to Non-GUI mode and run the test again for 80 user. If you are following this approach, increase the threads after 45 in step -wise manner. (ramp up 10 users and let them run for say 5-10 mins. This can be done by ultimate thread group). This will help you to identify exactly for what number of threads the issue start occurring.

Also,
when you start getting errors did you try accessing the application manually?
do you have server logs accessible directly or can you ask for the logs for the time of your test? If yes to either, try analyzing what is wrong at the time when you start getting errors?

And you should be doing this all by resetting to whatever jMeter settings you had for test which ran successfully for 45 users.