On 28 March 2011 14:10, Cor-Paul Bezemer <[email protected]> wrote: > Well actually this always happens after creating the first 10 threads, > after this hundreds of threads may be created without error messages.
Is there some one-time initialisation being performed by one of the early threads? If so, perhaps this uses up lots of memory which is then released. Otherwise, it sounds like a Java or OS bug. I assume this only happens for specific test plans? Have you tried seeing if disabling some test elements changes the behaviour? > > CP > > -----Original Message----- > From: Anthony Johnson [mailto:[email protected]] > Sent: maandag 28 maart 2011 14:05 > To: JMeter Users List > Cc: Cor-Paul Bezemer > Subject: Re: Out of memory almost immediately after start > > We just had a similar thread related to this, but the problem is that > Java itself does not have enough native memory left to create a > thread. > > This is going to be related to your -Xmx -Xms settings and the amount > of threads that you are asking JMeter to run. > > Try lowering your thread count, setting -Xms JVM setting and/or > lowering the -Xmx value to allow for more native memory. > > Their are other tricks as well, but the ones above should get you back on > track. > > Good luck, > > Anthony > > On Mon, Mar 28, 2011 at 7:34 AM, Cor-Paul Bezemer <[email protected]> > wrote: >> I'm investigating a problem I have with one of my testcases and when I >> inspect the log file, I see the following happen: >> >> 2011/03/28 13:30:38 INFO - jmeter.threads.JMeterThread: Thread started: >> Stepping Thread Group 1-2 >> 2011/03/28 13:30:38 INFO - jmeter.threads.JMeterThread: Thread started: >> Stepping Thread Group 1-6 >> 2011/03/28 13:30:38 INFO - jmeter.threads.JMeterThread: Thread started: >> Stepping Thread Group 1-8 >> 2011/03/28 13:30:38 INFO - jmeter.threads.JMeterThread: Thread started: >> Stepping Thread Group 1-10 >> 2011/03/28 13:30:38 INFO - jmeter.threads.JMeterThread: Thread started: >> Stepping Thread Group 1-1 >> 2011/03/28 13:30:38 INFO - jmeter.threads.JMeterThread: Thread started: >> Stepping Thread Group 1-4 >> 2011/03/28 13:30:38 INFO - jmeter.threads.JMeterThread: Thread started: >> Stepping Thread Group 1-3 >> 2011/03/28 13:30:38 INFO - jmeter.threads.JMeterThread: Thread started: >> Stepping Thread Group 1-5 >> 2011/03/28 13:30:38 INFO - jmeter.threads.JMeterThread: Thread started: >> Stepping Thread Group 1-7 >> 2011/03/28 13:30:38 INFO - jmeter.threads.JMeterThread: Thread started: >> Stepping Thread Group 1-9 >> 2011/03/28 13:30:38 ERROR - jmeter.engine.StandardJMeterEngine: Uncaught >> exception: java.lang.OutOfMemoryError: unable to create new native thread >> at java.lang.Thread.start0(Native Method) >> at java.lang.Thread.start(Unknown Source) >> at >> > org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java: >> 484) >> at java.lang.Thread.run(Unknown Source) >> >> So an outofmemory exception is thrown almost immediately after starting > the >> tests... Does anyone have any idea what causes this? >> It doesn't really seem to affect the test run but I want to make sure it >> isn't. >> >> Thanks! CP >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

