It would have the same effect. But the way I've always done it is edit jmeter
executable {install_dir}/bin/jmeter
# This is the base heap size -- you may increase or decrease it to fit your
# system's memory availability:
: "${HEAP:="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m"}"
You can then run your test with the executable or shell script as normal.
Cheers,
Kieran
Kieran Lynch
WM Reply
Nova South
160 Victoria Street, Westminster
London SW1E 5LB - UK
phone: +44 (0)20 7730 6000
[email protected]<mailto:[email protected]>
www.reply.com
[WM Reply]
________________________________
From: Deepak Chaudhari <[email protected]>
Sent: 05 July 2021 20:04
To: JMeter Users List <[email protected]>
Subject: Re: java lang out of memory error heap space
I tried this but it doesn't work.
Also It's for resetting JVM heap size. Not for JMeter as we see in
jmeter.bat
On Tue, Jul 6, 2021 at 12:16 AM Mariusz W <[email protected]> wrote:
> Hi,
> Just open jmeter.sh file. There is info in comments:
>
> ## Environment variables:
> ## JVM_ARGS - optional java args, e.g. -Dprop=val
> ##
> ## e.g.
> ## JVM_ARGS="-Xms512m -Xmx512m" jmeter.sh etc.
>
>
> Regards,
> M
>
> On Mon, 5 Jul 2021 at 12:11, Deepak Chaudhari <[email protected]>
> wrote:
>
> > I'm executing the test using jmeter.sh
> > Where to change min max heap size for it?
> >
> > On Fri, Jul 2, 2021 at 11:38 PM Felix Schumacher <
> > [email protected]> wrote:
> >
> > >
> > > Am 02.07.21 um 18:10 schrieb Deepak Chaudhari:
> > > > Hi,
> > > >
> > > > I'm executing al load test with 100 users using JMeter and after 5
> > > minutes
> > > > getting below error:
> > > > java lang out of memory error heap space
> > > >
> > > > I tried to increase the heap space (Xms1g -Xmx8g)
> > > > Also increased JVM space (JVM_ARGS="-Xms1g -Xmx8g")
> > > >
> > > > But I'm still getting the same error.
> > > > Any solution for this?
> > >
> > > You could tell us more about the used elements in your test plan.
> > > Especially the used listeners.
> > >
> > > Apart from those information, it might be interesting to know the used
> > > JVM, OS, threads, taken samples...
> > >
> > > Felix
> > >
> > > >
> > >
> > >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]