# "compiler limit: internal heap limit reached"

**URL:** <https://forums.unrealengine.com/t/compiler-limit-internal-heap-limit-reached/151184>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [September 25, 2020, 6:13am UTC](https://forums.unrealengine.com/t/compiler-limit-internal-heap-limit-reached/151184 "2020-09-25T06:13:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nullterm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nullterm/32/88718_2.png) [@nullterm](https://forums.unrealengine.com/u/nullterm)\
**Post date:** [September 25, 2020, 6:13am UTC](https://forums.unrealengine.com/t/compiler-limit-internal-heap-limit-reached/151184/1 "2020-09-25T06:13:16Z")

</div>

I just upgraded to a 12 core Ryzen 9 and it seems like Unreal is losing it’s marbles trying to compile with 24 processes all at the same time. But it’s running out of heap space when it tries as I’m still using 16GB of RAM.

Is there any way to limit the number of compiler threads?

1\>c1xx : error C3859: Failed to create virtual memory for PCH  
1\> c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.  
1\>  
1\>  
1\> c1xx: note: please visit [https://aka.ms/pch-help](https://aka.ms/pch-help) for more details

---

<div class="post-metadata">

**Author:** ![botman99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@botman99](https://forums.unrealengine.com/u/botman99)\
**Post date:** [September 25, 2020, 6:09pm UTC](https://forums.unrealengine.com/t/compiler-limit-internal-heap-limit-reached/151184/2 "2020-09-25T18:09:35Z")

</div>

Create a BuildConfiguration.xml file…

[https://docs.unrealengine.com/en-US/…ion/index.html](https://docs.unrealengine.com/en-US/Programming/BuildTools/UnrealBuildTool/BuildConfiguration/index.html)

…with something like this:

```auto

[FONT=Courier New]<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
  <BuildConfiguration>
  </BuildConfiguration>
  <LocalExecutor>
    <MaxProcessorCount>12</MaxProcessorCount>
  </LocalExecutor>
  <ParallelExecutor>
    <MaxProcessorCount>12</MaxProcessorCount>
  </ParallelExecutor>
</Configuration>

```

---

<div class="post-metadata">

**Author:** ![nullterm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nullterm/32/88718_2.png) [@nullterm](https://forums.unrealengine.com/u/nullterm)\
**Post date:** [September 25, 2020, 6:42pm UTC](https://forums.unrealengine.com/t/compiler-limit-internal-heap-limit-reached/151184/3 "2020-09-25T18:42:49Z")

</div>

Thank you! This sorted it out.

---

<div class="post-metadata">

**Author:** ![WilliamXu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/williamxu/32/88710_2.png) [@WilliamXu](https://forums.unrealengine.com/u/WilliamXu)\
**Post date:** [December 3, 2021, 8:27am UTC](https://forums.unrealengine.com/t/compiler-limit-internal-heap-limit-reached/151184/4 "2021-12-03T08:27:19Z")

</div>

This solve my problem too.Thank you GBX\_botman~

---

<div class="post-metadata">

**Author:** ![eblade](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eblade](https://forums.unrealengine.com/u/eblade)\
**Post date:** [December 5, 2021, 6:47pm UTC](https://forums.unrealengine.com/t/compiler-limit-internal-heap-limit-reached/151184/5 "2021-12-05T18:47:22Z")

</div>

also, make your windows page file larger

---

<div class="post-metadata">

**Author:** ![Origins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Origins](https://forums.unrealengine.com/u/Origins)\
**Post date:** [October 5, 2023, 6:05am UTC](https://forums.unrealengine.com/t/compiler-limit-internal-heap-limit-reached/151184/6 "2023-10-05T06:05:33Z")

</div>

This is ridiculous. I don’t have these issues with 5.2.1 for source build. But 5.3.1 I am facing this issue

Update : It worked like a charm

---

<div class="post-metadata">

**Author:** ![eatmorepies](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eatmorepies](https://forums.unrealengine.com/u/eatmorepies)\
**Post date:** [December 12, 2025, 9:06pm UTC](https://forums.unrealengine.com/t/compiler-limit-internal-heap-limit-reached/151184/7 "2025-12-12T21:06:21Z")

</div>

I encountered this issue after creating a derived C++ class from AHUD. I was able to delete it and rebuild successfully, and then I made the derived C++ class again with no issues.

I don’t really have much more information than that, unfortunately.
