Modify current env variable HEAP="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m" in the jmeter batch file

3,791 views
Skip to first unread message

Abhishek Mangudkar

unread,
Aug 27, 2018, 3:44:12 AM8/27/18
to codename-taurus
While executing taurus in gui mode, getting below message :

ERROR: JMeter STDOUT:
============================================================
Don't use GUI mode for load testing !, only for Test creation and Test debugging.
For load testing, use NON GUI Mode:
   jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]
& increase Java Heap to meet your test requirements:
   Modify current env variable HEAP="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m" in the jmeter batch file

grey....@gmail.com

unread,
Aug 27, 2018, 3:50:51 AM8/27/18
to codename-taurus
Hi, Abhishek.
So what is your question?

---
Taras

Abhishek Mangudkar

unread,
Aug 27, 2018, 4:42:35 AM8/27/18
to codename-taurus
How to fix this..?
Jmeter GUI isn't opening.

grey....@gmail.com

unread,
Aug 27, 2018, 5:22:49 AM8/27/18
to codename-taurus
That message is just jmeter gui mode output and shouldn't to be fixed.
If Jmeter doesn't start with taurus:
1. try to run jmeter from command line with/without generated jmx (<artifacts_dir>/modified_requests.jmx)
2. check jmeter.[err/log/out] from artifacts_dir. If the problem will be still vague please share these files.

---
Taras

Shakil Shanto

unread,
Jan 4, 2024, 7:35:14 AM1/4/24
to codename-taurus
  1. Go to the bin folder of JMeter
    apache-jmeter-<version> -> bin
  2. Right-click and open jmeter.bat file in notepad or notepad++
  3. Search for the keyword ‘set Heap’
  4. You can see the default heap size (1 GB – may vary in your JMeter version)
    set HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m
  5. Change the -Xms (initial heap size) and -Xmx (maximum heap size) values. You can increase these values up to 80% of total heap. In my case, I just increased the max heap size value. Refer to the below arguments:
    set HEAP=-Xms1g -Xmx2g -XX:MaxMetaspaceSize=256m
  6. To check the total allocated heap to JVM, run the below command in the command prompt:
    java -XX:+PrintFlagsFinal -version | findstr /i “HeapSize PermSize ThreadStackSize”
Reply all
Reply to author
Forward
0 new messages