On Wed, Jun 22, 2011 at 10:51 AM, jsheth <[email protected]> wrote: > I would rather not have it that slow > > I just ran it with 200 threads and 6000seconds ramp up time and I got > > ERROR - jmeter.engine.StandardJMeterEngine: Uncaught exception: > java.lang.OutOfMemoryError: GC overhead limit exceeded
Ok, the next thing you need to know is that each thread will use up memory based on its stack size. The default stack size is 512kb (or 0.5Mb), see http://java.sun.com/docs/hotspot/threads/threads.html This means 200 * 0.5 = 100Mb. Plus whatever JMeter is using, plus your applications itself. The default memory from jmeter.bat it 512Mb. You can configure the stack size with the -Xss flag. We currently modify the jmeter.bat file: set HEAP=-Xms1024m -Xmx1024m -Xss100k This means Java allocates 1Gb of memory and will not grow beyond 1Gb of memory (this is so we know that once JMeter is up it should have all the memory it requires for long running tests) and a stack of 100k. We are able to grow our threads to the order of 500+. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

