# Error Occurred during initialization of VM

**URL:** <https://community.gatling.io/t/error-occurred-during-initialization-of-vm/3418>\
**Category:** Gatling (Open-Source)\
**Created:** [November 30, 2016, 2:31pm UTC](https://community.gatling.io/t/error-occurred-during-initialization-of-vm/3418 "2016-11-30T14:31:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kapil\_Vedhara](https://avatars.discourse-cdn.com/v4/letter/k/d9b06d/32.png) [@Kapil\_Vedhara](https://community.gatling.io/u/Kapil_Vedhara)\
**Post date:** [November 30, 2016, 2:31pm UTC](https://community.gatling.io/t/error-occurred-during-initialization-of-vm/3418/1 "2016-11-30T14:31:31Z")

</div>

Hello,

I’m setting up Gatling on my laptop, i have been following the Quickstart guide and I have managed to record the computerbase scenario.

When I come to launch gatling.bat from the command line i get the following:

C:\Users\xxxx\gatling\bin\>gatling.bat  
GATLING\_HOME is set to “C:\Users\xxxx\gatling”  
JAVA = ““C:\Program Files (x86)\Java\jre1.8.0\_101\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 . . .

GATLING\_HOME appears to be set correctly  
JAVE\_HOME appears to be set correctly

Anyone any ideas?

I’m using a windows 10 machine and i’ve downloaded Gatling 2.23

Any help is much appreciated.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [November 30, 2016, 4:24pm UTC](https://community.gatling.io/t/error-occurred-during-initialization-of-vm/3418/2 "2016-11-30T16:24:33Z")

</div>

No enough available memory on your laptop (because of other running apps?).

---

<div class="post-metadata">

**Author:** ![Kapil\_Vedhara](https://avatars.discourse-cdn.com/v4/letter/k/d9b06d/32.png) [@Kapil\_Vedhara](https://community.gatling.io/u/Kapil_Vedhara)\
**Post date:** [November 30, 2016, 8:13pm UTC](https://community.gatling.io/t/error-occurred-during-initialization-of-vm/3418/3 "2016-11-30T20:13:22Z")

</div>

Hi Stephane,

The only thing i have running is the command prompt, memory is at 30%, when i start gatling.bat it peaks to 32% so that does not appear to be the issue.

---

<div class="post-metadata">

**Author:** ![guanji\_wang](https://avatars.discourse-cdn.com/v4/letter/g/838e76/32.png) [@guanji\_wang](https://community.gatling.io/u/guanji_wang)\
**Post date:** [November 22, 2017, 3:19pm UTC](https://community.gatling.io/t/error-occurred-during-initialization-of-vm/3418/4 "2017-11-22T15:19:57Z")

</div>

Me the same situation, which config can we do on windows 32 bits?  
Thank you.

---

<div class="post-metadata">

**Author:** ![Ignacio\_Degeneffe](https://avatars.discourse-cdn.com/v4/letter/i/e0b2c6/32.png) [@Ignacio\_Degeneffe](https://community.gatling.io/u/Ignacio_Degeneffe)\
**Post date:** [November 24, 2017, 6:29pm UTC](https://community.gatling.io/t/error-occurred-during-initialization-of-vm/3418/5 "2017-11-24T18:29:54Z")

</div>

you should increase java heap memory. try to execute using maven plugin and set jvm settings there.
