On 06/09/2007, Seth Southern <[EMAIL PROTECTED]> wrote: > All, > > We're getting sporadic java.net.ConnectException on random embedded > resource samples. The error doesn't always happen suggesting that the > file we're requesting does exist on the server, and it when it does > occur is isn't necessarily the same embedded resource from occurrence to > occurrence. The message seems to be "Connection timed out: connect." I > have included the exception stack trace as reported by a "View Results > Tree" listener below. > > Our client seems to think that this is the fault of JMeter, and I keep > telling him that the exception is coming from deep inside Java. From > what I can tell this exception is thrown from Java, caught by JMeter, > and simply reported as an Error in the listeners. This is exactly how > it seems JMeter should react. I'm assuming that there's an error at the > server and the sampler simply times out while waiting for the server to > respond. > > Can anyone confirm my assumption?
Yes, the stack trace shows that the error is occurring in the Java code, and it is not a JMeter problem per se. But what causes the connection to time out? Is it necessarily a problem with the server? Presumably a proxy could cause the error. If the JMeter host runs out of sockets, can that cause the error? - I would expect that to cause a different error. It might be worth trying the HttpClient version of the HTTP sampler, though I doubt it will make much difference, as it will still use the same Java sockets. But if it does change the behaviour significantly, then it might give some clues as to what is happening. > Thanks, > > Seth > > ---------------------------------------------- > > 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.Socket.connect(Unknown Source) > at java.net.Socket.connect(Unknown Source) > at sun.net.NetworkClient.doConnect(Unknown Source) > at sun.net.www.http.HttpClient.openServer(Unknown Source) > at sun.net.www.http.HttpClient.openServer(Unknown Source) > at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source) > at sun.net.www.protocol.https.HttpsClient.New(Unknown Source) > at > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown > Source) > at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown > Source) > at > sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown > Source) > at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown > Source) > at > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:457) > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.downloadPageResources(HTTPSamplerBase.java:1044) > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.resultProcessing(HTTPSamplerBase.java:1253) > at > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:537) > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:889) > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:875) > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:298) > at java.lang.Thread.run(Unknown Source) > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

