jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomada <thomas.ra...@gmail.com>
Subject Re: Java Sampler causing Memory Leak
Date Sun, 21 Jun 2009 19:57:20 GMT

Hi !

It is a parameter value which contains the xml stream that is why I have
wrote that it is look like something like
http://myWebApp.com/sendValues?${myXmlStream}.
I need to generate the xmlstream dynamically that's why I used the Java
Sampler.

Thank you

Tomada


sebb-2-2 wrote:
> 
> On 20/06/2009, tomada <thomas.rasoa@gmail.com> wrote:
>>
>>  Hi !
>>
>>  As I want to determine the steady state of the server I am testing I
>> need to
>>  increase the number of threads until it crashes. I have already tried
>> with
>>  20 Threads with a ramp up time of 15 seconds between them but jmeter
>> crashes
>>  30 min after with an heap size of 1Gb.
>>
>>  Actually I did not find another solution apart from using the java
>> sampler
>>  and the regexpextractor to simulate what I want. Yes I did wrote a new
>> Java
>>  Sampler (like a plugin) which generate the xmlstream and put in the
>> response
>>  Message and then i get it with the regexpextractor component. If you
>> have
>>  another solution for doing what I want I will be very grateful.
>>
>>  In fact I just want to directly generate the xml in the POST method of a
>> new
> 
> But which part of the POST method contains the xml?
> 
> Is it a parameter value, or is it the whole body or what?
> 
>>  HttpSampler object so i won't need to use java sampler and
>> regexpextractor.
>>  My problem is I do not know where an how to do it. I tried to create my
>>  NewHttpSampler extending HTTPSampler but It does not really work. The
>> idea
>>  is to create a NewHttpSampler as Plugin.
>>
>>  I think I give enough informations. Don't hesitate to ask me.
> 
> Do you need to create the XML data dynamically, or could you create
> files which contain the required data before starting the test run?
> 
>>  Thank you
>>
>>  Tomada
>>
>>
>>
>>  sebb-2-2 wrote:
>>  >
>>  > On 19/06/2009, tomada <thomas.rasoa@gmail.com> wrote:
>>  >>
>>  >>  Hi all !
>>  >>
>>  >>  I am little new in Jmeter community and I am currently using it for
>> Load
>>  >>  test on a server with a lot of datas (400kb/thread)
>>  >
>>  > How many threads?
>>  >
>>  >>  In order to generate those datas I need (in form of xmlstream) I use
>> the
>>  >>  java sampler to do it.
>>  >>  You can see below the part of my scenario about it :
>>  >>  Loop Controller : Forever (I just have to stop the test when I want
>> to)
>>  >>      |-----------Java Sampler : generating a xmlstream and put it in
>> the
>>  >>  response message
>>  >>      |-----------RegExpExtractor : get the xmlstream in response
>> message
>>  >> and
>>  >>  put it in a variable ${myXmlStream}
>>  >>      |-----------HttpRequest : sendValues?${myXmlStream}
>>  >
>>  > Seems a bit wasteful to use a JavaSampler and the RegexExtractor just
>>  > to create a variable. Is this using an existing Java sampler or
>>  > something you wrote?
>>  >
>>  >>  Unfortunately, as I am doing a forever loop on it (my Java Sampler
>> and
>>  >> my
>>  >>  sendvalues http request)to keep control on the load test time, I
>> quickly
>>  >> get
>>  >>  memory issues (out of Memory errors)which make Jmeter crashes. I
>> already
>>  >>  have increase the heap size but it just postpones it. I look into
>> the
>>  >> heap
>>  >>  dump and apparently it is the queryString object in the httpSampler
>>  >> which
>>  >>  contains my xmlStream which is keeping (maybe too long) the
>> xmlStream.
>>  >>
>>  >>  One solution I find (and please tell me if it is right one or if may
>>  >> choose
>>  >>  another one) is to directly generate the XmlStream in a a kind of
>> new
>>  >>  HTTPSampler object. So I create a NewHTTPSampler object extending
>>  >>  HTTPSampler, first override the sample () method to not send the
>>  >> queryString
>>  >>  content, then build my component which actually becomes a plugin,
>> and
>>  >> then
>>  >>  put the jar in the lib/ext folder but when I am executing Jmeter I
>> see
>>  >>  nothing new in the sampler menu.
>>  >>  What can I do to succeed in doing what i want to do ? Is what I did
>> the
>>  >>  right way to deal with the memory leak or can I handle it in easier
>> way
>>  >> ?
>>  >
>>  > I'm not clear what the HTTP Sample looks like, i.e. where are you
>>  > using the generated data? As a parameter value? Or POST data?
>>  >
>>  >>  Thank you for your help.
>>  >>
>>  >>  Tomada
>>  >>
>>  >>
>>  >>  --
>>  >>  View this message in context:
>>  >>
>> http://www.nabble.com/Java-Sampler-causing-Memory-Leak-tp24119770p24119770.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
>>  >
>>  >
>>  >
>>
>>
>> --
>>  View this message in context:
>> http://www.nabble.com/Java-Sampler-causing-Memory-Leak-tp24119770p24129523.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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Java-Sampler-causing-Memory-Leak-tp24119770p24138168.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


Mime
View raw message