jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jephperro <jeff.perrea...@gmail.com>
Subject Re: Sample Batching: how to reduce data and avoid out of memory?
Date Thu, 11 Sep 2008 21:19:35 GMT



sebb-2-2 wrote:
> 
> On 11/09/2008, jephperro <jeff.perreault@gmail.com> wrote:
>>
>>  JMeter has been working well for me under small load.  However, my
>> problem is
>>  with the JMeter console running out of memory when collecting data from
>> the
>>  remote machines.  I've been using Mode=Hold, and once the test finishes,
>> the
>>  client tends to crash on me.
>>
>>  I have 5 machines, starting 100 threads each, and looping around.  All
>> that
>>  detailed data isn't really important to me.  I just really want to see
>> an
>>  average response time.  In fact what I'm really trying to do is stress
>> the
>>  system enough to locate a bottleneck by doing a thread-dump.
> 
> In that case, why not just run 5 independent JMeter clients in non-GUI
> mode?
> 
> Well, we are trying to develop a standard procedure, that is easy to set
> up again and again.  I'm using other people's computers in the office,
> it's easy to set up the server and just run the tests in the background. 
> However I might try running them independently - that's a good idea.
> 
>>  So,  I'd like to use Statistical mode, and receive very few statistics
>> from
>>  the remote machines.  But I'm confused by the Remote configuration.
>>
>>  The documentation says :
>>  The following properties apply to the Batch and Statistical modes:
>>
>>  num_sample_threshold - number of samples in a batch (default 100)
>>  time_threshold - number of milliseconds to wait (default 60 seconds)
>>
>>  Now does that mean, if I want to receive very brief stats in Statistical
>>  mode, I should set num_sample_threshold to be very high or very low?
>>
> 
>>  Here's what I have tried in the settings, but the master Jmeter crashed
>> on
>>  me.
> 
> What caused the crash?
> 
> On the server: Uncaught Exception java.lang.NullPointerException
> From the log: 2008/09/11 10:10:05 ERROR - jmeter.threads.JMeterThread: 
> java.lang.IllegalArgumentException: Host of origin may not be blank (I
> look into that, but doesn't happen when I run in Hold mode )
> 
> On the GUI : OutOfMemory error.
> 
> I gave it another try in Hold mode, and I disabled "Graph Results",
> "Spline Visualizer", "View Results Tree", etc.   It worked well this time.
> 
> 
>>  mode=Statistical
>>  #hold_samples=true
>>  num_sample_threshold=10000    // 10,000 samples per batch? or 10,000
>> samples
>>  sent at a time
>>  time_threshold=600000           // 10 minutes
>>
>>  Does this mean that the remote machine will send back one sample for
>> every
>>  10,000 samples it takes?
>>  Will it wait for 10,000 samples to occur before sending?
>>
>>  If the test ends before 10 minutes, can I stop the remote server?  Or is
>> it
>>  waiting 10 minutes to send it's accumulated data.
> 
> I would expect the server to send the remaining samples when the test
> ends.
> 
> It would be easy enough to create a simple test plan using Java
> Request and experiment with that.
> 
> Note that the property settings have to be applied to the server
> nodes, because it is the server that determines how to send the data.
> 
> If you still want to use client-server mode, why not try removing all
> listeners?
> You can add a Summariser to the test plan - this will generate brief
> log messages every 3 minutes.
> 
>>  Thanks,
>>
>>  Jeff
>>
>>  (btw thanks to sebb-2-2 for answering my previous question!)
>>
>> --
>>  View this message in context:
>> http://www.nabble.com/Sample-Batching%3A-how-to-reduce-data-and-avoid-out-of-memory--tp19426028p19426028.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/Sample-Batching%3A-how-to-reduce-data-and-avoid-out-of-memory--tp19426028p19445028.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