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 < [email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > -- ::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.
