You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by kretes <kr...@gazeta.pl> on 2009/02/04 16:32:56 UTC
Jmeter is keeping the http response in memory
Hello.
I have a specific need of testing an app, that is responding with a file.
currently it is about 33MB for response. And I want to stress test my app
with let's say a 100 simultaneously requests. I would like JMeter to throw
away this data - it's not needed.
And What i get is a outofmemory of course.
I do not have anything except sampler. is there a way to tell JMeter not to
keep the response?
Right now I have a 10 * 33 MB response, and JMeter eats 850MB of memory
after test...
Thanks in advance
Tomasz Bartczak
--
View this message in context: http://www.nabble.com/Jmeter-is-keeping-the-http-response-in-memory-tp21832812p21832812.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Jmeter is keeping the http response in memory
Posted by sebb <se...@gmail.com>.
On 05/02/2009, Thomas Johnson <nt...@gmail.com> wrote:
> It might be necessary to build a more customized HTTP sampler that
> discards the response body data as it comes in (eg, just reads bytes
> to a ring buffer, possibly creating a CRC of the response body along
> the way).
There's an enhancement request for this:
https://issues.apache.org/bugzilla/show_bug.cgi?id=41921
In the current code, the full response will be stored at least temporarily.
However, unless you use a Listener that needs to keep the response,
the object should be released, so you will only need enough memory to
store all the concurrent samples, not every sample.
The "cheap" Listeners are documented here:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#listeners
>
> On Thu, Feb 5, 2009 at 9:10 AM, kretes <kr...@gazeta.pl> wrote:
> >
> > Functional is unchecked as it is by default, and I removed all listeners.
> >
> > I looked at the JMeter HTTPSamplers code - they are just putting all the
> > data into objects.
> > Made my customized version of these, to discard the data, but that help only
> > in a little way, it eats smaller amount of memory, but still - a lot!
> >
> >
> > Noel O'Brien wrote:
> >>
> >> Hi,
> >>
> >> Make sure you have "Functional Mode" unchecked and if you have any
> >> listeners
> >> writing to file, configure them to only save the data you absolutely need.
> >>
> >> Regards,
> >> Noel
> >>
> >> n Wednesday 04 February 2009 15:32:56 kretes wrote:
> >>> Hello.
> >>>
> >>> I have a specific need of testing an app, that is responding with a file.
> >>> currently it is about 33MB for response. And I want to stress test my app
> >>> with let's say a 100 simultaneously requests. I would like JMeter to
> >>> throw
> >>> away this data - it's not needed.
> >>> And What i get is a outofmemory of course.
> >>>
> >>> I do not have anything except sampler. is there a way to tell JMeter not
> >>> to
> >>> keep the response?
> >>> Right now I have a 10 * 33 MB response, and JMeter eats 850MB of memory
> >>> after test...
> >>>
> >>> Thanks in advance
> >>> Tomasz Bartczak
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >>
> >
> > --
> > View this message in context: http://www.nabble.com/Jmeter-is-keeping-the-http-response-in-memory-tp21832812p21846955.html
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Jmeter is keeping the http response in memory
Posted by Thomas Johnson <nt...@gmail.com>.
It might be necessary to build a more customized HTTP sampler that
discards the response body data as it comes in (eg, just reads bytes
to a ring buffer, possibly creating a CRC of the response body along
the way).
On Thu, Feb 5, 2009 at 9:10 AM, kretes <kr...@gazeta.pl> wrote:
>
> Functional is unchecked as it is by default, and I removed all listeners.
>
> I looked at the JMeter HTTPSamplers code - they are just putting all the
> data into objects.
> Made my customized version of these, to discard the data, but that help only
> in a little way, it eats smaller amount of memory, but still - a lot!
>
>
> Noel O'Brien wrote:
>>
>> Hi,
>>
>> Make sure you have "Functional Mode" unchecked and if you have any
>> listeners
>> writing to file, configure them to only save the data you absolutely need.
>>
>> Regards,
>> Noel
>>
>> n Wednesday 04 February 2009 15:32:56 kretes wrote:
>>> Hello.
>>>
>>> I have a specific need of testing an app, that is responding with a file.
>>> currently it is about 33MB for response. And I want to stress test my app
>>> with let's say a 100 simultaneously requests. I would like JMeter to
>>> throw
>>> away this data - it's not needed.
>>> And What i get is a outofmemory of course.
>>>
>>> I do not have anything except sampler. is there a way to tell JMeter not
>>> to
>>> keep the response?
>>> Right now I have a 10 * 33 MB response, and JMeter eats 850MB of memory
>>> after test...
>>>
>>> Thanks in advance
>>> Tomasz Bartczak
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Jmeter-is-keeping-the-http-response-in-memory-tp21832812p21846955.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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: Jmeter is keeping the http response in memory
Posted by kretes <kr...@gazeta.pl>.
Functional is unchecked as it is by default, and I removed all listeners.
I looked at the JMeter HTTPSamplers code - they are just putting all the
data into objects.
Made my customized version of these, to discard the data, but that help only
in a little way, it eats smaller amount of memory, but still - a lot!
Noel O'Brien wrote:
>
> Hi,
>
> Make sure you have "Functional Mode" unchecked and if you have any
> listeners
> writing to file, configure them to only save the data you absolutely need.
>
> Regards,
> Noel
>
> n Wednesday 04 February 2009 15:32:56 kretes wrote:
>> Hello.
>>
>> I have a specific need of testing an app, that is responding with a file.
>> currently it is about 33MB for response. And I want to stress test my app
>> with let's say a 100 simultaneously requests. I would like JMeter to
>> throw
>> away this data - it's not needed.
>> And What i get is a outofmemory of course.
>>
>> I do not have anything except sampler. is there a way to tell JMeter not
>> to
>> keep the response?
>> Right now I have a 10 * 33 MB response, and JMeter eats 850MB of memory
>> after test...
>>
>> Thanks in advance
>> Tomasz Bartczak
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Jmeter-is-keeping-the-http-response-in-memory-tp21832812p21846955.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: Jmeter is keeping the http response in memory
Posted by Noel O'Brien <no...@newbay.com>.
Hi,
Make sure you have "Functional Mode" unchecked and if you have any listeners
writing to file, configure them to only save the data you absolutely need.
Regards,
Noel
n Wednesday 04 February 2009 15:32:56 kretes wrote:
> Hello.
>
> I have a specific need of testing an app, that is responding with a file.
> currently it is about 33MB for response. And I want to stress test my app
> with let's say a 100 simultaneously requests. I would like JMeter to throw
> away this data - it's not needed.
> And What i get is a outofmemory of course.
>
> I do not have anything except sampler. is there a way to tell JMeter not to
> keep the response?
> Right now I have a 10 * 33 MB response, and JMeter eats 850MB of memory
> after test...
>
> Thanks in advance
> Tomasz Bartczak
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org