# Getting java heap error tried a bunch of things with the executor and memory settings

**URL:** <https://discuss.hail.is/t/getting-java-heap-error-tried-a-bunch-of-things-with-the-executor-and-memory-settings/2753>\
**Category:** Hail Batch & General Cloud\
**Created:** [July 15, 2022, 1:17am UTC](https://discuss.hail.is/t/getting-java-heap-error-tried-a-bunch-of-things-with-the-executor-and-memory-settings/2753 "2022-07-15T01:17:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)\
**Post date:** [October 5, 2022, 2:51am UTC](https://discuss.hail.is/t/getting-java-heap-error-tried-a-bunch-of-things-with-the-executor-and-memory-settings/2753/2 "2022-10-05T02:51:42Z")

</div>

Hey @jerome-f !

Sorry for the huge latency, I missed this post.

I think you’re probably facing the same issue as here: [How do I increase the memory or RAM available to the JVM when I start Hail through Python? - #2 by danking](https://discuss.hail.is/t/how-do-i-increase-the-memory-or-ram-available-to-the-jvm-when-i-start-hail-through-python/133/2) . In short, the JVM by default doesn’t scoop up all your available RAM for the driver.

---

_[View the full topic](https://discuss.hail.is/t/getting-java-heap-error-tried-a-bunch-of-things-with-the-executor-and-memory-settings/2753)._
