You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Shmuel Krakower <sh...@gmail.com> on 2013/10/09 07:45:16 UTC

Re: HTTPHostConnectionException in jmeter, but I do see a request served successfully in access log

Strange issue, specially that your get both timeout and connection refused
exceptions at the same time.

Few questions/ideas:
1. You mentioned you are using few servers to run the JMeter test. Is this
error shown on specific host or every time on a different host.
2. What happen if you run only a partial load with a single JMeter host? Is
the error shown too?
3. Have you tried to switch to another HTTP Implementation on the samplers?
4. To log I would suggest you to use the Simple Data Writer and log all
data related with failing samples only.
5. Is it possible you simply overloading your SUT (System Under Test)? Did
you look at it during load test?



Shmuel Krakower.
www.Beatsoo.org - re-use your jmeter scripts for application performance
monitoring from worldwide locations for free.


On Tue, Sep 24, 2013 at 7:32 PM, Manish Sapariya <ms...@gmail.com>wrote:

> Sebb,
> Thanks for the probing questions and sorry for the delay in reply.
> Somehow I did not notice this reply.
>
> > I see following exception for some request. However the request
> > > is successfully served as per the access log of httpd.
> > > ======================
> >
> > Are you sure it's the same connection?
> > That does not seem possible.
> >
> > If the connection is refused, how can the server handle it?
> >
>
> That's what I could not figure out.
>
>
> > Double (triple) check which connections are succeeeding and which are
> > failing
> >
>
> I did cross check it with the unique identified in the request and made
> sure
> that its the only request.
>
>
> > Try using non-GUI mode on the client node.
> >
> > I'm suprised you need 10 servers for a total of 500 users.
> > Depending on the test plan, a single node can handle that.
> >
>
> My test is data heavy. Its a test to simulate a video tutorials
> viewing test. I forgot to mention that the test plan have 3 thread
> groups running in parallel. So it makes it 150 threads in single
> instance.
>
> I am still trying to chase the problem. In order to understand
> which connection is being rejected, I am trying to capture data
> packets, but its huge data. So I am trying to capture only syn,
> syn-ack and possible rst packets. But to do any kind of co-relation
> I need to know what local ports jmeter used.
>
> However I am not sure if jmeter can log the local port it used, or
> better yet, when it shows failed request with any kind of exception,
> can it also log local port for that socket?
>
> I tried to check the properties files, but could not find exactly what
> I was looking for. Turning the complete debugging for httpclient
> may be too much, and may also slow down the test itself.
>
> Any inputs?
> Thanks,
> Manish
>

Re: HTTPHostConnectionException in jmeter, but I do see a request served successfully in access log

Posted by Flavio Cysne <fl...@gmail.com>.
I have had similar problems at work.
Monitor your environment Network Bandwidth (network cards, interfaces and
switches), it may be being overcharged at some point.
How many threads available in web/application server's thread pool? And
application server connections pool? And DB max connections?

Re: HTTPHostConnectionException in jmeter, but I do see a request served successfully in access log

Posted by Manish Sapariya <ms...@gmail.com>.
Thanks Shmuel.
Please see my answers inline.

Few questions/ideas:

> 1. You mentioned you are using few servers to run the JMeter test. Is this
> error shown on specific host or every time on a different host.
>

Not on specific host.


> 2. What happen if you run only a partial load with a single JMeter host? Is
> the error shown too?
>
The problem I saw only when I run my tests full throttle.


> 3. Have you tried to switch to another HTTP Implementation on the samplers?
>
No. I will try out when I run the same test again.


> 4. To log I would suggest you to use the Simple Data Writer and log all
> data related with failing samples only.
>
Will try this out.


> 5. Is it possible you simply overloading your SUT (System Under Test)? Did
> you look at it during load test?
>
> As I mentioned, I see this problem when I run full throttle.
I also tried capturing packets using tcpdump, but I could not find easy way
to capture only relevant http connections which are failing.

I will post to this thread if I make any in roads.

Regards,
Manish



>
>
> Shmuel Krakower.
> www.Beatsoo.org - re-use your jmeter scripts for application performance
> monitoring from worldwide locations for free.
>
>
> On Tue, Sep 24, 2013 at 7:32 PM, Manish Sapariya <msapariya@gmail.com
> >wrote:
>
> > Sebb,
> > Thanks for the probing questions and sorry for the delay in reply.
> > Somehow I did not notice this reply.
> >
> > > I see following exception for some request. However the request
> > > > is successfully served as per the access log of httpd.
> > > > ======================
> > >
> > > Are you sure it's the same connection?
> > > That does not seem possible.
> > >
> > > If the connection is refused, how can the server handle it?
> > >
> >
> > That's what I could not figure out.
> >
> >
> > > Double (triple) check which connections are succeeeding and which are
> > > failing
> > >
> >
> > I did cross check it with the unique identified in the request and made
> > sure
> > that its the only request.
> >
> >
> > > Try using non-GUI mode on the client node.
> > >
> > > I'm suprised you need 10 servers for a total of 500 users.
> > > Depending on the test plan, a single node can handle that.
> > >
> >
> > My test is data heavy. Its a test to simulate a video tutorials
> > viewing test. I forgot to mention that the test plan have 3 thread
> > groups running in parallel. So it makes it 150 threads in single
> > instance.
> >
> > I am still trying to chase the problem. In order to understand
> > which connection is being rejected, I am trying to capture data
> > packets, but its huge data. So I am trying to capture only syn,
> > syn-ack and possible rst packets. But to do any kind of co-relation
> > I need to know what local ports jmeter used.
> >
> > However I am not sure if jmeter can log the local port it used, or
> > better yet, when it shows failed request with any kind of exception,
> > can it also log local port for that socket?
> >
> > I tried to check the properties files, but could not find exactly what
> > I was looking for. Turning the complete debugging for httpclient
> > may be too much, and may also slow down the test itself.
> >
> > Any inputs?
> > Thanks,
> > Manish
> >
>