# Java out of memory exception only on my machine

**URL:** <https://discuss.gradle.org/t/java-out-of-memory-exception-only-on-my-machine/32847>\
**Category:** Help/Discuss\
**Created:** [August 19, 2019, 6:56pm UTC](https://discuss.gradle.org/t/java-out-of-memory-exception-only-on-my-machine/32847 "2019-08-19T18:56:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott-hothead](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@scott-hothead](https://discuss.gradle.org/u/scott-hothead)\
**Post date:** [August 19, 2019, 6:56pm UTC](https://discuss.gradle.org/t/java-out-of-memory-exception-only-on-my-machine/32847/1 "2019-08-19T18:56:41Z")

</div>

Hi!

I am working on project that is around 4 years old, and has been succesfully building on jenkins and on other programmer’s machines, and is currently building properly on those machines. On mine, it throws a java.lang.OutOfMemoryError. Our (very large) project is set to run with 2 gigs of memory on the java virtual machine. I increased it to 4 and then to 6 gigs, and it still ran out of memory.

Seeing as I am the only person affected by this, I appear to be in some sort of bad state and I was wondering what the common steps are to get out of these sorts of states.
