I'm using Jmeter to periodically call a SOAP web service using the
SOAP/XML-RPC sampler. For the most part, it works just fine. However
after a while, the thread will hang, waiting on a socket read. Once it
hangs, it never returns and I have to restart Jmeter to get the thread
working once more. Is there any way to set a socket timeout or is there
some other technique for preventing this kind of behavior?
Here's a thread dump from Jmeter
"Test SOAP1-1" prio=5 tid=0x0095a8a0 nid=0xa88 runnable
[24a0f000..24a0fd94]
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.a(Unknown Source)
at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown Source)
- locked <0x182a76c8> (a java.lang.Object)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown
Source)
- locked <0x182a76d8> (a
com.sun.net.ssl.internal.ssl.AppInputStream)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
- locked <0x182b6ef0> (a java.io.BufferedInputStream)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
- locked <0x182a64e0> (a
com.sun.net.ssl.internal.www.protocol.https.DelegateHttpsURLConnection)
at
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown
Source)
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.ge
tHeaderField(Unknown Source)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.disconnect(HTTPSampl
er.java:765)
at
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.j
ava:602)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl
erBase.java:585)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSampl
erBase.java:573)
at
org.apache.jmeter.protocol.http.sampler.SoapSampler.sample(SoapSampler.j
ava:146)
at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:254)
at java.lang.Thread.run(Unknown Source)
Mat.
------------------------------------------------------------------------------CONFIDENTIALITY
NOTICE: If you have received this e-mail in error, please immediately notify the
sender by e-mail at the address shown. This e-mail transmission may contain
confidential information. This information is intended only for the use of the
individual(s) or entity to whom it is intended even if addressed incorrectly. Please
delete it from your files if you are not the intended recipient. Thank you for your
compliance. Copyright (c) 2004 CIGNA
==============================================================================