Installing Gatling

1,182 views
Skip to first unread message

chandra shekhar Turha

unread,
Jan 20, 2017, 3:30:38 AM1/20/17
to Gatling User Group
hello, I am new user to Gatling and I am trying evaluate the tool for our performance testing, After installing gatling I am trying to run gatling.bat on windows and I get this error

C:\gatling-charts-highcharts-bundle-2.2.3\bin>gatling.bat
GATLING_HOME is set to "C:\gatling-charts-highcharts-bundle-2.2.3"
JAVA = ""C:\Program Files\Java\jdk1.8.0_121\bin\java.exe""
Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native thread
There is no simulation script. Please check that your scripts are in user-files/
simulations
Press any key to continue . . .

The version of gatling installed is 2.2.3

Stephen

unread,
Jan 23, 2017, 3:36:46 AM1/23/17
to Gatling User Group
Hello,

I would suggest you to increase the maximum heap size of the JVM to 1536m.

In gatling.bat, find the "-Xmx1G" parameter and replace it to "-Xmx1536m". In the latest release, it is on line 45.

chandra shekhar Turha

unread,
Jan 23, 2017, 1:07:27 PM1/23/17
to Gatling User Group
Hi Stephen, many thanks for your quick reply. The application is launching now :-)

chandra shekhar Turha

unread,
Jan 24, 2017, 12:36:25 AM1/24/17
to Gatling User Group
Now I am getting this error..

C:\gatling-charts-highcharts-bundle-2.2.3\bin>gatling.bat
GATLING_HOME is set to "C:\gatling-charts-highcharts-bundle-2.2.3"
JAVA = ""C:\Program Files\Java\jdk1.8.0_121\bin\java.exe""
Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap
Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap

The application launched once only after setting the switch -Xmx1536m in gatling.bat

chandra shekhar Turha

unread,
Jan 24, 2017, 1:00:21 AM1/24/17
to Gatling User Group
The machine I am using is 32-bit

chandra shekhar Turha

unread,
Jan 24, 2017, 1:03:01 AM1/24/17
to Gatling User Group
I tired setting ENV variable, but no luck

Variables->New: Variable name: _JAVA_OPTIONS

Variable value: -Xmx1536m

Barry Perez

unread,
Jan 24, 2017, 2:19:37 AM1/24/17
to Gatling User Group
A 32-bit jvm supports a 1.5gb heap.


How much free memory is there on your machine before starting Gatling?

Please tell us you've checked this?

chandra shekhar Turha

unread,
Jan 24, 2017, 4:02:59 AM1/24/17
to Gatling User Group
it is less than 400MB

Barry Perez

unread,
Jan 24, 2017, 4:28:33 AM1/24/17
to Gatling User Group

There's your problem then...

Senthilchandrasekar Thangaraj

unread,
Apr 17, 2018, 5:01:05 PM4/17/18
to Gatling User Group

I have 67.8GB free space in my machine.

but it shows

GATLING_HOME is set to "C:\gatling-charts-highcharts-bundle-2.3.1"
JAVA = ""C:\opt\isv\Devtools\\jdk1.8.45\bin\java.exe""
Error occurred during initialization of VM
Could not reserve enough space for 1048576KB object heap

There is no simulation script. Please check that your scripts are in user-files/
simulations
Press any key to continue . . .

how can I resolve this issue.?
scala file created listed in user files\Simulation

Reply all
Reply to author
Forward
0 new messages