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]
