jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Speteanu <asp.ad...@gmail.com>
Subject Re: OutOfMemoryError: Java heap space
Date Mon, 02 Aug 2010 14:13:59 GMT
you have to increase the virtual memory size, if on a windows station and a
defragmenting of the OS disk-partition might be useful for the space to
provide room for the JVM requirements. I've encountered a similar JVM crash
during load tests and after some research found some opinions / comments on
the bug that the JVM requires the virtual memory not to be fragmented (so
that it has continuous space for blocks of at least 50% of JVM virtual
memory space requirements) - however, it was also a windows only issue. this
sounded tricky since it's the OS responsibility to manage resources and not
of the JVM, but it doesn't occur if you set the starting parameters in
jmeter.bat correctly for your test machine and if the virtual memory isn't
used intensively by other applications in parallel with jmeter...

On Fri, Jul 30, 2010 at 8:57 PM, Deepak Shetty <shettyd@gmail.com> wrote:

> hi
>
> it means your machine could not allocate the amount of memory you have
> specified in a contiguous block. It depends on how much RAM you have , how
> much is used , how much virtual memory etc etc. Close as many applications
> a
> syou can and retry or reduce the Xms Xmx value (1GB or 1.5 Gb)
>
> regards
> deepak
>
> On Fri, Jul 30, 2010 at 7:10 AM, Suresh Rajachar
> <suresh_rajachar@yahoo.com>wrote:
>
> >
> >
> > I am facing teh same problem.
> > After i increase the heap size in jmeter bat file and started the bat
> file,
> > i am
> > geting this error message
> >
> > Error occurred during initialization of VM
> > Could not reserve enough space for object heap
> > Could not create the Java virtual machine.
> > errorlevel=1
> > Press any key to continue . . .
> >
> > Can anyone suggest me the work around please ?
> >
> >
> > Regards,
> > Suresh R
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > Deepak,
> > >
> > > I have been playing with it. Now, what I do is to execute jmeter.bat to
> > > open up jmeter, then pull up my test plan and do not get anymore
> errors.
> > If
> > > I execute jmeter icon linked to the ApacheJMeter.jar, that is the time
> I
> > got
> > > the OutOfMemory error.
> > >
> > > I just do not understand the reason for executing ApacheJMeter.jar to
> get
> > > outofMemory error. Is there a way for me to set up ApacheJMeter.jar to
> > use
> > > jmeter.bat?
> > >
> > > Thanks.
> > >
> > > Patty
> > >
> > >
> > >
> > >
> > >    *Re: OutOfMemoryError: Java heap space*
> > >  *Deepak Shetty * to: JMeter Users List
> > > 07/28/2010 03:10 PM
> > >
> > >  *Please respond to "JMeter Users List"*
> > >
> > >
> > >
> > > ------------------------------
> > >
> > >
> > >
> > >
> >
> http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean
> > > Are you running in GUI mode, if so dont? Did you verify your changes
> got
> > > picked correctly (java process should show 2GB being used)
> > >
> > > regards
> > > deepak
> > >
> > > On Wed, Jul 28, 2010 at 2:58 PM, <Patty.Wong@sybase.com> wrote:
> > >
> > > > Hi,
> > > >
> > > > When I set the number of threads up to 120, the plan runs well
> without
> > > > issues. However, when I set the number of threads to 130, I will have
> > the
> > > > following error in the jmeter.log:
> > > >
> > > >
> > > > ERROR - jmeter.threads.JMeterThread: Test failed!
> > > > java.lang.OutOfMemoryError: Java heap space
> > > >
> > > >
> > > > I have changed HEAP settings in jmeter.bat from
> > > >
> > > > -Xms512m -Xmx512m
> > > >
> > > > to
> > > >
> > > > -Xms2048m -Xmx2048m
> > > >
> > > >
> > > > but still cannot get rid of the error.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Any suggestions? Thank you.
> > > >
> > > > Patty
> > >
> > >
> >
> >
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message