Reputation: 2445
I'm having difficulty running jMeter 5.0 via the jmeter.bat file on Windows 8.1. I've been using jMeter 3.0 successfully via the jmeter.bat file. The bat file for the 3.0 version in this directory, and works:
C:\Downloads\jMeter 3.0\apache-jmeter-3.0\bin
The jMeter 5.0 version sits in this directory, and fails:
C:\Downloads\jMeter 5.0\apache-jmeter-5.0\bin
Error it produces:
Invalid initial heap size: -Xms1024m -Xmx1024m -Dpropname=value
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
errorlevel=1
Press any key to continue . . .
Do I need to tweak the jmeter.bat file or install something else first?
Upvotes: 1
Views: 1071
Reputation: 58774
JMeter's JVM settings increased by default and you can update jmeter.bat file with your required settings overriding JVM_ARGS=...
or HEAP
JMeter JVM heap settings have changed from -Xms512m -Xmx512m to -Xms1g -Xmx1g
HEAP - (Optional) JVM memory settings used when starting JMeter Defaults to '-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m'
Upvotes: 2