# Installing Gatling

**URL:** <https://community.gatling.io/t/installing-gatling/3511>\
**Category:** Gatling (Open-Source)\
**Created:** [January 20, 2017, 8:30am UTC](https://community.gatling.io/t/installing-gatling/3511 "2017-01-20T08:30:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![chandra\_shekhar\_Turh](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chandra\_shekhar\_Turh](https://community.gatling.io/u/chandra_shekhar_Turh)\
**Post date:** [January 20, 2017, 8:30am UTC](https://community.gatling.io/t/installing-gatling/3511/1 "2017-01-20T08:30:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Stephen](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Stephen](https://community.gatling.io/u/Stephen)\
**Post date:** [January 23, 2017, 8:36am UTC](https://community.gatling.io/t/installing-gatling/3511/2 "2017-01-23T08:36:46Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![chandra\_shekhar\_Turh](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chandra\_shekhar\_Turh](https://community.gatling.io/u/chandra_shekhar_Turh)\
**Post date:** [January 23, 2017, 6:07pm UTC](https://community.gatling.io/t/installing-gatling/3511/3 "2017-01-23T18:07:27Z")

</div>

Hi Stephen, many thanks for your quick reply. The application is launching now 🙂

---

<div class="post-metadata">

**Author:** ![chandra\_shekhar\_Turh](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chandra\_shekhar\_Turh](https://community.gatling.io/u/chandra_shekhar_Turh)\
**Post date:** [January 24, 2017, 5:36am UTC](https://community.gatling.io/t/installing-gatling/3511/4 "2017-01-24T05:36:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chandra\_shekhar\_Turh](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chandra\_shekhar\_Turh](https://community.gatling.io/u/chandra_shekhar_Turh)\
**Post date:** [January 24, 2017, 6:00am UTC](https://community.gatling.io/t/installing-gatling/3511/5 "2017-01-24T06:00:20Z")

</div>

The machine I am using is 32-bit

---

<div class="post-metadata">

**Author:** ![chandra\_shekhar\_Turh](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chandra\_shekhar\_Turh](https://community.gatling.io/u/chandra_shekhar_Turh)\
**Post date:** [January 24, 2017, 6:03am UTC](https://community.gatling.io/t/installing-gatling/3511/6 "2017-01-24T06:03:00Z")

</div>

I tired setting ENV variable, but no luck

Variables-\>New: Variable name: `_JAVA_OPTIONS`

Variable value: -Xmx1536m

---

<div class="post-metadata">

**Author:** ![Barry\_Perez](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@Barry\_Perez](https://community.gatling.io/u/Barry_Perez)\
**Post date:** [January 24, 2017, 7:19am UTC](https://community.gatling.io/t/installing-gatling/3511/7 "2017-01-24T07:19:37Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![chandra\_shekhar\_Turh](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chandra\_shekhar\_Turh](https://community.gatling.io/u/chandra_shekhar_Turh)\
**Post date:** [January 24, 2017, 9:02am UTC](https://community.gatling.io/t/installing-gatling/3511/8 "2017-01-24T09:02:59Z")

</div>

it is less than 400MB

---

<div class="post-metadata">

**Author:** ![Barry\_Perez](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@Barry\_Perez](https://community.gatling.io/u/Barry_Perez)\
**Post date:** [January 24, 2017, 9:28am UTC](https://community.gatling.io/t/installing-gatling/3511/9 "2017-01-24T09:28:33Z")

</div>

There’s your problem then…

---

<div class="post-metadata">

**Author:** ![Senthilchandrasekar](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@Senthilchandrasekar](https://community.gatling.io/u/Senthilchandrasekar)\
**Post date:** [April 17, 2018, 9:01pm UTC](https://community.gatling.io/t/installing-gatling/3511/10 "2018-04-17T21:01:05Z")

</div>

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
