You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Guruprasad R <gu...@gmail.com> on 2014/03/07 09:38:45 UTC

http request failing in jmeter2.11 but works fine in 2.9

Hi all, i am sending a http request from jmeter-2.9 and jmeter-2.11.
Jmeter-2.11 shows exception in response for alternate requests. The script
works well in jmeter-2.9 without any issues.

I placed a breakpoint in my server to see whether the alternate requests
are reaching my server. But its not reaching the server at all. My scripts
directly points to the server.

The response error that i see is pasted below:

org.apache.http.NoHttpResponseException: The target server failed to respond
at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:95)
at
org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:61)
at
org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)
at
org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:289)
at
org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252)
at
org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191)
at
org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:300)
at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127)
at
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:715)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:481)
at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:298)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1105)
at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1094)
at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
at java.lang.Thread.run(Unknown Source)

Pls let me know if any of you have a solution to it.

Regards,
Guru

Re: http request failing in jmeter2.11 but works fine in 2.9

Posted by NaveenKumar N <ca...@gmail.com>.
Turn off the firewall and try. Use fiddler tool tool to compare the requests.

Thank you!
NaveenKumar N
Sent from my iPhone

> On Mar 7, 2014, at 2:08 PM, Guruprasad R <gu...@gmail.com> wrote:
> 
> Hi all, i am sending a http request from jmeter-2.9 and jmeter-2.11.
> Jmeter-2.11 shows exception in response for alternate requests. The script
> works well in jmeter-2.9 without any issues.
> 
> I placed a breakpoint in my server to see whether the alternate requests
> are reaching my server. But its not reaching the server at all. My scripts
> directly points to the server.
> 
> The response error that i see is pasted below:
> 
> org.apache.http.NoHttpResponseException: The target server failed to respond
> at
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:95)
> at
> org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:61)
> at
> org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)
> at
> org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:289)
> at
> org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:252)
> at
> org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:191)
> at
> org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:300)
> at
> org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:127)
> at
> org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:715)
> at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)
> at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
> at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:481)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:298)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1105)
> at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1094)
> at
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
> at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
> at java.lang.Thread.run(Unknown Source)
> 
> Pls let me know if any of you have a solution to it.
> 
> Regards,
> Guru

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


Re: http request failing in jmeter2.11 but works fine in 2.9

Posted by sebb <se...@gmail.com>.
OK, thanks for confirming the work-round is OK.

==

The next version of JMeter will have a way of specifying an idle
timeout in case the server does not send the optional header
(Keep-Alive)

The HC4 stale connection check is currently a bit expensive, as it
applies to every sample.
That is why the default was changed to disable it.
It may be possible to add a cheaper stale check (e.g. every n samples,
or if the connection has been idle for a while).

On 7 March 2014 11:32, Guruprasad R <gu...@gmail.com> wrote:
> Thanks sebb.. that was helpful.. It works fine after i made the changes
> pointed out by you.
>
> Regards,
> Guru
>
> On Fri, Mar 7, 2014 at 4:28 PM, sebb <se...@gmail.com> wrote:
>
>> On 7 March 2014 08:38, Guruprasad R <gu...@gmail.com> wrote:
>> > Hi all, i am sending a http request from jmeter-2.9 and jmeter-2.11.
>> > Jmeter-2.11 shows exception in response for alternate requests. The
>> script
>> > works well in jmeter-2.9 without any issues.
>>
>> This looks like an example of
>>
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=56119
>>
>> See comment 14 for a work-round.
>>
>> Alternatively deselect Keep-Alive on the previous sample to the same host.
>>
>> The problem is likely to be idle connection timeout, which was
>> previously masked by
>> > I placed a breakpoint in my server to see whether the alternate requests
>> > are reaching my server. But its not reaching the server at all.
>>
>> It's not reaching as far as logging the request.
>>
>> <snip/>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>

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


Re: http request failing in jmeter2.11 but works fine in 2.9

Posted by Guruprasad R <gu...@gmail.com>.
Thanks sebb.. that was helpful.. It works fine after i made the changes
pointed out by you.

Regards,
Guru

On Fri, Mar 7, 2014 at 4:28 PM, sebb <se...@gmail.com> wrote:

> On 7 March 2014 08:38, Guruprasad R <gu...@gmail.com> wrote:
> > Hi all, i am sending a http request from jmeter-2.9 and jmeter-2.11.
> > Jmeter-2.11 shows exception in response for alternate requests. The
> script
> > works well in jmeter-2.9 without any issues.
>
> This looks like an example of
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=56119
>
> See comment 14 for a work-round.
>
> Alternatively deselect Keep-Alive on the previous sample to the same host.
>
> The problem is likely to be idle connection timeout, which was
> previously masked by
> > I placed a breakpoint in my server to see whether the alternate requests
> > are reaching my server. But its not reaching the server at all.
>
> It's not reaching as far as logging the request.
>
> <snip/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: http request failing in jmeter2.11 but works fine in 2.9

Posted by sebb <se...@gmail.com>.
On 7 March 2014 08:38, Guruprasad R <gu...@gmail.com> wrote:
> Hi all, i am sending a http request from jmeter-2.9 and jmeter-2.11.
> Jmeter-2.11 shows exception in response for alternate requests. The script
> works well in jmeter-2.9 without any issues.

This looks like an example of

https://issues.apache.org/bugzilla/show_bug.cgi?id=56119

See comment 14 for a work-round.

Alternatively deselect Keep-Alive on the previous sample to the same host.

The problem is likely to be idle connection timeout, which was
previously masked by
> I placed a breakpoint in my server to see whether the alternate requests
> are reaching my server. But its not reaching the server at all.

It's not reaching as far as logging the request.

<snip/>

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