increase Ram allocation - heap size Jmeter

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

increase Ram allocation - heap size Jmeter

prateekgommt
Hi,

I'm running jmeter via shell script - Jenkins
/var/lib/jenkins/workspace/apache-jmeter-4.0/bin/*jmeter  *

I want to increase heap size -Xms1g -Xmx1g  in Jmeter as while running a
script with heavy csv records got error  [StandardJMeterEngine] ERROR
org.apache.jmeter.JMeter - Uncaught exception:
java.lang.OutOfMemoryError: Java heap space

Have gone through various articles & got confused in changing the
allocation size . There are *3 files in bin folder* which includes heap
size allocation config

1.   setenv.sh   -- Shell Script
2.   *jmeter  --  Unix Executable*   // I'm using this file in running
jmeter via shell script from Jenkins as stated above
3    jmeter.sh -- Shell Script

So my ask is -- Do I have to change the heap size allocation in all these 3
files to see the impact *OR* in any one of these files* OR* only in
jmeter  *jmeter
--  Unix Executable *which I'm using to run Jmeter.


please help me on this.

Thanks,
Prateek

--


::DISCLAIMER::


----------------------------------------------------------------------------------------------------------------------------------------------------





This message is intended only for the use of the addressee and may
contain information that is privileged, confidential and exempt from
disclosure under applicable law. If the reader of this message is not the
intended recipient, or the employee or agent responsible for delivering the
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this e-mail in error, please notify us
immediately by return e-mail and delete this e-mail and all attachments
from your system.
Reply | Threaded
Open this post in threaded view
|

Re: increase Ram allocation - heap size Jmeter

prateekgommt
+ more group

On Sat, Feb 16, 2019 at 2:12 PM Prateek Dua <[hidden email]> wrote:

> Hi,
>
> I'm running jmeter via shell script - Jenkins
> /var/lib/jenkins/workspace/apache-jmeter-4.0/bin/*jmeter  *
>
> I want to increase heap size -Xms1g -Xmx1g  in Jmeter as while running a
> script with heavy csv records got error  [StandardJMeterEngine] ERROR
> org.apache.jmeter.JMeter - Uncaught exception:
> java.lang.OutOfMemoryError: Java heap space
>
> Have gone through various articles & got confused in changing the
> allocation size . There are *3 files in bin folder* which includes heap
> size allocation config
>
> 1.   setenv.sh   -- Shell Script
> 2.   *jmeter  --  Unix Executable*   // I'm using this file in running
> jmeter via shell script from Jenkins as stated above
> 3    jmeter.sh -- Shell Script
>
> So my ask is -- Do I have to change the heap size allocation in all these
> 3 files to see the impact *OR* in any one of these files* OR* only in
> jmeter  *jmeter  --  Unix Executable *which I'm using to run Jmeter.
>
>
> please help me on this.
>
> Thanks,
> Prateek
>
>
>
>
>
>
>
>
>
>
>

--


::DISCLAIMER::


----------------------------------------------------------------------------------------------------------------------------------------------------





This message is intended only for the use of the addressee and may
contain information that is privileged, confidential and exempt from
disclosure under applicable law. If the reader of this message is not the
intended recipient, or the employee or agent responsible for delivering the
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this e-mail in error, please notify us
immediately by return e-mail and delete this e-mail and all attachments
from your system.
Reply | Threaded
Open this post in threaded view
|

Re: increase Ram allocation - heap size Jmeter

Felix Schumacher
In reply to this post by prateekgommt

Am 16.02.19 um 09:42 schrieb Prateek Dua:

> Hi,
>
> I'm running jmeter via shell script - Jenkins
> /var/lib/jenkins/workspace/apache-jmeter-4.0/bin/*jmeter  *
>
> I want to increase heap size -Xms1g -Xmx1g  in Jmeter as while running a
> script with heavy csv records got error  [StandardJMeterEngine] ERROR
> org.apache.jmeter.JMeter - Uncaught exception:
> java.lang.OutOfMemoryError: Java heap space
>
> Have gone through various articles & got confused in changing the
> allocation size . There are *3 files in bin folder* which includes heap
> size allocation config
>
> 1.   setenv.sh   -- Shell Script

This is in my opinion the best place to put your personalized settings.
Have a look in the docs or in the jmeter script for the variable names
and set those in the setenv.sh file.

That way you can easily update your JMeter installation later.

> 2.   *jmeter  --  Unix Executable*   // I'm using this file in running
> jmeter via shell script from Jenkins as stated above
> 3    jmeter.sh -- Shell Script
>
> So my ask is -- Do I have to change the heap size allocation in all these 3
> files to see the impact *OR* in any one of these files* OR* only in
> jmeter  *jmeter
> --  Unix Executable *which I'm using to run Jmeter.

You should set the variable in setenv.sh. The other scripts will use
those values.

Regards,

 ¬†Felix

>
>
> please help me on this.
>
> Thanks,
> Prateek
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: increase Ram allocation - heap size Jmeter

prateekgommt
Hi Felix,

Just couple of questions here..,

*"**setenv.sh"* includes single line export HEAP="-Xms2g -Xmx2g
-XX:MaxMetaspaceSize=256m" & if we are increasing from 1gb to 2gb here , do
we have to change the value of MaxMetaspaceSize also from
-XX:MaxMetaspaceSize=256m
to -*XX:MaxMetaspaceSize=2g  ?*

OR  below lines..

  #!/bin/sh
  JVM_ARGS="-Xms512m -Xmx5120m"













On Sat, Feb 16, 2019 at 5:35 PM Felix Schumacher <
[hidden email]> wrote:

>
> Am 16.02.19 um 09:42 schrieb Prateek Dua:
> > Hi,
> >
> > I'm running jmeter via shell script - Jenkins
> > /var/lib/jenkins/workspace/apache-jmeter-4.0/bin/*jmeter  *
> >
> > I want to increase heap size -Xms1g -Xmx1g  in Jmeter as while running a
> > script with heavy csv records got error  [StandardJMeterEngine] ERROR
> > org.apache.jmeter.JMeter - Uncaught exception:
> > java.lang.OutOfMemoryError: Java heap space
> >
> > Have gone through various articles & got confused in changing the
> > allocation size . There are *3 files in bin folder* which includes heap
> > size allocation config
> >
> > 1.   setenv.sh   -- Shell Script
>
> This is in my opinion the best place to put your personalized settings.
> Have a look in the docs or in the jmeter script for the variable names
> and set those in the setenv.sh file.
>
> That way you can easily update your JMeter installation later.
>
> > 2.   *jmeter  --  Unix Executable*   // I'm using this file in running
> > jmeter via shell script from Jenkins as stated above
> > 3    jmeter.sh -- Shell Script
> >
> > So my ask is -- Do I have to change the heap size allocation in all
> these 3
> > files to see the impact *OR* in any one of these files* OR* only in
> > jmeter  *jmeter
> > --  Unix Executable *which I'm using to run Jmeter.
>
> You should set the variable in setenv.sh. The other scripts will use
> those values.
>
> Regards,
>
>   Felix
>
> >
> >
> > please help me on this.
> >
> > Thanks,
> > Prateek
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

--


::DISCLAIMER::


----------------------------------------------------------------------------------------------------------------------------------------------------





This message is intended only for the use of the addressee and may
contain information that is privileged, confidential and exempt from
disclosure under applicable law. If the reader of this message is not the
intended recipient, or the employee or agent responsible for delivering the
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this e-mail in error, please notify us
immediately by return e-mail and delete this e-mail and all attachments
from your system.
Reply | Threaded
Open this post in threaded view
|

Re: increase Ram allocation - heap size Jmeter

Felix Schumacher


Am 18. Februar 2019 10:18:28 MEZ schrieb Prateek Dua <[hidden email]>:

>Hi Felix,
>
>Just couple of questions here..,
>
>*"**setenv.sh"* includes single line export HEAP="-Xms2g -Xmx2g
>-XX:MaxMetaspaceSize=256m" & if we are increasing from 1gb to 2gb here
>, do
>we have to change the value of MaxMetaspaceSize also from
>-XX:MaxMetaspaceSize=256m
>to -*XX:MaxMetaspaceSize=2g  ?*

Why would you want to do this?

>
>OR  below lines..
>
>  #!/bin/sh
>  JVM_ARGS="-Xms512m -Xmx5120m"

Memory setting is very dependent on the type of load you have, so we can't give general advice.

You have to look at the amount of memory used and the number and duration of the garbage collections.

Felix

>
>
>
>
>
>
>
>
>
>
>
>
>
>On Sat, Feb 16, 2019 at 5:35 PM Felix Schumacher <
>[hidden email]> wrote:
>
>>
>> Am 16.02.19 um 09:42 schrieb Prateek Dua:
>> > Hi,
>> >
>> > I'm running jmeter via shell script - Jenkins
>> > /var/lib/jenkins/workspace/apache-jmeter-4.0/bin/*jmeter  *
>> >
>> > I want to increase heap size -Xms1g -Xmx1g  in Jmeter as while
>running a
>> > script with heavy csv records got error  [StandardJMeterEngine]
>ERROR
>> > org.apache.jmeter.JMeter - Uncaught exception:
>> > java.lang.OutOfMemoryError: Java heap space
>> >
>> > Have gone through various articles & got confused in changing the
>> > allocation size . There are *3 files in bin folder* which includes
>heap
>> > size allocation config
>> >
>> > 1.   setenv.sh   -- Shell Script
>>
>> This is in my opinion the best place to put your personalized
>settings.
>> Have a look in the docs or in the jmeter script for the variable
>names
>> and set those in the setenv.sh file.
>>
>> That way you can easily update your JMeter installation later.
>>
>> > 2.   *jmeter  --  Unix Executable*   // I'm using this file in
>running
>> > jmeter via shell script from Jenkins as stated above
>> > 3    jmeter.sh -- Shell Script
>> >
>> > So my ask is -- Do I have to change the heap size allocation in all
>> these 3
>> > files to see the impact *OR* in any one of these files* OR* only in
>> > jmeter  *jmeter
>> > --  Unix Executable *which I'm using to run Jmeter.
>>
>> You should set the variable in setenv.sh. The other scripts will use
>> those values.
>>
>> Regards,
>>
>>   Felix
>>
>> >
>> >
>> > please help me on this.
>> >
>> > Thanks,
>> > Prateek
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]