# Compile time OutOfMemoryError

**URL:** <https://discourse.processing.org/t/compile-time-outofmemoryerror/34683>\
**Category:** Coding Questions\
**Created:** [January 17, 2022, 12:14am UTC](https://discourse.processing.org/t/compile-time-outofmemoryerror/34683 "2022-01-17T00:14:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![codebodger](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@codebodger](https://discourse.processing.org/u/codebodger)\
**Post date:** [January 17, 2022, 12:14am UTC](https://discourse.processing.org/t/compile-time-outofmemoryerror/34683/1 "2022-01-17T00:14:25Z")

</div>

I have a sketch that is quite big (about 8 MiB) that will not compile. When I run it, it gives me an `OutOfMemoryError` while compiling. It will not even do `print("hi");` if I put it at the beginning. Does anyone know how I might prevent this from happening? I tried increasing the maximum memory to 4 GiB, but it still doesn’t work and Processing 4 is only using 700 MiB total. I am very confused.
