You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Steve Kapinos <St...@tandberg.com> on 2008/11/26 21:13:02 UTC

I/O Exceptions with httpclient

One of my recent runs of a nightly simultation melted down on a certain
run.  Trying to piece together why.  The jmeter log is full of
exceptions like this

2008/11/25 13:48:19 INFO  - jmeter.control.IncludeController:
loadIncludedElements -- try to load included module:
vcs-calllog-generator.jmx 
2008/11/25 13:48:19 INFO  - jmeter.engine.StandardJMeterEngine: Starting
40 threads for group VCS Thread Group. Ramp up = 10. 
2008/11/25 13:48:19 INFO  - jmeter.engine.StandardJMeterEngine: Continue
on error 
2008/11/25 13:48:19 INFO  -
org.apache.commons.httpclient.HttpMethodDirector: I/O exception
(java.net.BindException) caught when processing request: Address already
in use: connect 
2008/11/25 13:48:19 INFO  -
org.apache.commons.httpclient.HttpMethodDirector: Retrying request 
2008/11/25 13:48:19 INFO  -
org.apache.commons.httpclient.HttpMethodDirector: I/O exception
(java.net.BindException) caught when processing request: Address already
in use: connect 
2008/11/25 13:48:19 INFO  -
org.apache.commons.httpclient.HttpMethodDirector: Retrying request 
2008/11/25 13:48:19 INFO  -
org.apache.commons.httpclient.HttpMethodDirector: I/O exception
(java.net.BindException) caught when processing request: Address already
in use: connect 
2008/11/25 13:48:19 INFO  -
org.apache.commons.httpclient.HttpMethodDirector: Retrying request

And eventually you see the retries failing

2008/11/25 13:48:26 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
Can't connect after 10 retries, java.net.BindException: Address already
in use: connect

Is this java complaining it can not bind to a local socket to open the
http sampler?

Any idea what would cause java to melt down like this?

It's a Win2003 server that normally runs the test w/o issue and even did
the following nights

-Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: I/O Exceptions with httpclient

Posted by Steve Kapinos <St...@tandberg.com>.
>Are you sure you copied that last log entry correctly?
>Or have you got both types of HTTP Sampler in the test plan?

There are likely both in the plan.  I didn't pay much attention at which
I copied because there were over 18megs of this stuff in the log :)

>Make sure you are using keep-alive where necessary to reduce connection
churn.

The best I can tell, this failed right near the start of the run in this
case.  So I don't think keep alives were part of the issue..  

The other poster's comment about another JVM running is a possibility
(another user logged in via another session).  Because the failure
seemed to be a one-time thing.  It's been running nightly for months and
then it totally melted down just this one night.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: I/O Exceptions with httpclient

Posted by sebb <se...@gmail.com>.
On 26/11/2008, Steve Kapinos <St...@tandberg.com> wrote:
> One of my recent runs of a nightly simultation melted down on a certain
>  run.  Trying to piece together why.  The jmeter log is full of
>  exceptions like this
>
>  2008/11/25 13:48:19 INFO  - jmeter.control.IncludeController:
>  loadIncludedElements -- try to load included module:
>  vcs-calllog-generator.jmx
>  2008/11/25 13:48:19 INFO  - jmeter.engine.StandardJMeterEngine: Starting
>  40 threads for group VCS Thread Group. Ramp up = 10.
>  2008/11/25 13:48:19 INFO  - jmeter.engine.StandardJMeterEngine: Continue
>  on error
>  2008/11/25 13:48:19 INFO  -
>  org.apache.commons.httpclient.HttpMethodDirector: I/O exception
>  (java.net.BindException) caught when processing request: Address already
>  in use: connect
>  2008/11/25 13:48:19 INFO  -
>  org.apache.commons.httpclient.HttpMethodDirector: Retrying request
>  2008/11/25 13:48:19 INFO  -
>  org.apache.commons.httpclient.HttpMethodDirector: I/O exception
>  (java.net.BindException) caught when processing request: Address already
>  in use: connect
>  2008/11/25 13:48:19 INFO  -
>  org.apache.commons.httpclient.HttpMethodDirector: Retrying request
>  2008/11/25 13:48:19 INFO  -
>  org.apache.commons.httpclient.HttpMethodDirector: I/O exception
>  (java.net.BindException) caught when processing request: Address already
>  in use: connect
>  2008/11/25 13:48:19 INFO  -
>  org.apache.commons.httpclient.HttpMethodDirector: Retrying request
>
>  And eventually you see the retries failing
>
>  2008/11/25 13:48:26 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
>  Can't connect after 10 retries, java.net.BindException: Address already
>  in use: connect

Are you sure you copied that last log entry correctly?
Or have you got both types of HTTP Sampler in the test plan?
The last log message is only used by the original (Java) sampler, and
the others are all the HttpClient version.

>  Is this java complaining it can not bind to a local socket to open the
>  http sampler?
>

Lack of sockets, probably.

I think the error message is a bit misleading - it should probably be
something more like "socket not available". As far as I can tell,
client sockets call bind() when establishing the ephemeral socket -
this results in a bind error rather than a create/open error.

>  Any idea what would cause java to melt down like this?

Make sure you are using keep-alive where necessary to reduce connection churn.

>  It's a Win2003 server that normally runs the test w/o issue and even did
>  the following nights

Maybe the server sometimes uses additional sockets.

>  -Steve
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: I/O Exceptions with httpclient

Posted by David Brown <da...@davidwbrown.name>.
Hello Steve, check for concurrent running JVMs. I have had similar issues using Weblogic and HttpClient and more than one running JVM will cause this situation. HTH, David.

Steve Kapinos wrote ..
> One of my recent runs of a nightly simultation melted down on a certain
> run.  Trying to piece together why.  The jmeter log is full of
> exceptions like this
> 
> 2008/11/25 13:48:19 INFO  - jmeter.control.IncludeController:
> loadIncludedElements -- try to load included module:
> vcs-calllog-generator.jmx 
> 2008/11/25 13:48:19 INFO  - jmeter.engine.StandardJMeterEngine: Starting
> 40 threads for group VCS Thread Group. Ramp up = 10. 
> 2008/11/25 13:48:19 INFO  - jmeter.engine.StandardJMeterEngine: Continue
> on error 
> 2008/11/25 13:48:19 INFO  -
> org.apache.commons.httpclient.HttpMethodDirector: I/O exception
> (java.net.BindException) caught when processing request: Address already
> in use: connect 
> 2008/11/25 13:48:19 INFO  -
> org.apache.commons.httpclient.HttpMethodDirector: Retrying request 
> 2008/11/25 13:48:19 INFO  -
> org.apache.commons.httpclient.HttpMethodDirector: I/O exception
> (java.net.BindException) caught when processing request: Address already
> in use: connect 
> 2008/11/25 13:48:19 INFO  -
> org.apache.commons.httpclient.HttpMethodDirector: Retrying request 
> 2008/11/25 13:48:19 INFO  -
> org.apache.commons.httpclient.HttpMethodDirector: I/O exception
> (java.net.BindException) caught when processing request: Address already
> in use: connect 
> 2008/11/25 13:48:19 INFO  -
> org.apache.commons.httpclient.HttpMethodDirector: Retrying request
> 
> And eventually you see the retries failing
> 
> 2008/11/25 13:48:26 ERROR - jmeter.protocol.http.sampler.HTTPSampler:
> Can't connect after 10 retries, java.net.BindException: Address already
> in use: connect
> 
> Is this java complaining it can not bind to a local socket to open the
> http sampler?
> 
> Any idea what would cause java to melt down like this?
> 
> It's a Win2003 server that normally runs the test w/o issue and even did
> the following nights
> 
> -Steve
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Yet some, not wise, go to the other side of the globe, to barbarous and unhealthy regions, and devote ten or twenty years, in that they may live,-that is, keep comfortably warm,- and die in New England at last. 

Henry David Thoreau - Walden - 1845


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org