Re: increase Ram allocation - heap size Jmeter

2019-02-20 Thread Felix Schumacher



Am 18. Februar 2019 10:18:28 MEZ schrieb Prateek Dua :
>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 <
>felix.schumac...@internetallee.de> 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
>> > 3jmeter.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: user-unsubscr...@jmeter.apache.org
>> For additional commands, e-mail: user-h...@jmeter.apache.org
>>
>>

-
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: increase Ram allocation - heap size Jmeter

2019-02-18 Thread Prateek Dua
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 <
felix.schumac...@internetallee.de> 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
> > 3jmeter.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: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>
>

-- 


::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.


Re: increase Ram allocation - heap size Jmeter

2019-02-16 Thread Felix Schumacher



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
3jmeter.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: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org



Re: increase Ram allocation - heap size Jmeter

2019-02-16 Thread Prateek Dua
+ more group

On Sat, Feb 16, 2019 at 2:12 PM Prateek Dua  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
> 3jmeter.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.


increase Ram allocation - heap size Jmeter

2019-02-16 Thread 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
2.   *jmeter  --  Unix Executable*   // I'm using this file in running
jmeter via shell script from Jenkins as stated above
3jmeter.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.