# Getting Java heap error while running gatling

**URL:** <https://community.gatling.io/t/getting-java-heap-error-while-running-gatling/7937>\
**Category:** Gatling (Open-Source)\
**Tags:** gatling-academy\
**Created:** [May 11, 2023, 5:49am UTC](https://community.gatling.io/t/getting-java-heap-error-while-running-gatling/7937 "2023-05-11T05:49:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zuhair](https://avatars.discourse-cdn.com/v4/letter/z/f475e1/32.png) [@Zuhair](https://community.gatling.io/u/Zuhair)\
**Post date:** [May 11, 2023, 5:49am UTC](https://community.gatling.io/t/getting-java-heap-error-while-running-gatling/7937/1 "2023-05-11T05:49:36Z")

</div>

Hi Team, we are trying to get performance results for our application that requires to feed data from a csv file. We have ten csv files and each file size is around 44 MB. When we try to run gatling script feeding ten files together, it throws `java.lang.OutOfMemoryError: Java heap space` error. I went through a lot of sites and added plugins to increase heap size up to 1GB, but it didn’t work out. Please provide solution to for the above issue.

Below added the details for your reference:  
Java JDK: 11.0.7  
gatling-charts-highcharts(Maven repository): 3.6.0  
gatling-maven-plugin: 3.1.2  
maven-surefire-plugin: 2.22.2  
Scala SDK: 2.13.10

 ![image (10)](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/a/ace1df8e26541d98de901615279c4b039564d0e6.png)

---

<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:** [May 11, 2023, 6:53am UTC](https://community.gatling.io/t/getting-java-heap-error-while-running-gatling/7937/2 "2023-05-11T06:53:20Z")

</div>

First thing first, please upgrade to Gatling 3.9.4, your current version really lags behind and we can only help with the latest version.  
Then, if you still experience an issue, please provide more information, typically a reproducer sample we can run on our side.

---

<div class="post-metadata">

**Author:** ![Zuhair](https://avatars.discourse-cdn.com/v4/letter/z/f475e1/32.png) [@Zuhair](https://community.gatling.io/u/Zuhair)\
**Post date:** [May 11, 2023, 1:25pm UTC](https://community.gatling.io/t/getting-java-heap-error-while-running-gatling/7937/3 "2023-05-11T13:25:32Z")

</div>

Thanks @slandelle, now the problem got resolved.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [June 10, 2023, 1:26pm UTC](https://community.gatling.io/t/getting-java-heap-error-while-running-gatling/7937/4 "2023-06-10T13:26:07Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
