# What the order for file BuildConfiguration.xml if there multi location

**URL:** <https://forums.unrealengine.com/t/what-the-order-for-file-buildconfiguration-xml-if-there-multi-location/1877197>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [May 28, 2024, 3:17pm UTC](https://forums.unrealengine.com/t/what-the-order-for-file-buildconfiguration-xml-if-there-multi-location/1877197 "2024-05-28T15:17:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlayTimeUnreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PlayTimeUnreal](https://forums.unrealengine.com/u/PlayTimeUnreal)\
**Post date:** [May 28, 2024, 3:17pm UTC](https://forums.unrealengine.com/t/what-the-order-for-file-buildconfiguration-xml-if-there-multi-location/1877197/1 "2024-05-28T15:17:41Z")

</div>

Hello,

I’m new with Unreal, and when I learn using C++ in Unreal I get error same like this:

> [@"compiler limit: internal heap limit reached"](https://forums.unrealengine.com/t/compiler-limit-internal-heap-limit-reached/151184):
>
> 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://a…](https://aka.ms/pch-help)

The error message I get:

> Determining max actions to execute in parallel (6 physical cores, 6 logical cores)  
> Executing up to 6 processes, one per physical core  
> Requested 1.5 GB memory per action, 7.49 GB available: limiting max parallel actions to 4  
> Using Parallel executor to run 3 action(s)  
> ------ Building 3 action(s) started ------  
> [1/3] Compile [x64] ObstacleAssault.init.gen.cpp  
> c1xx: error C3859: Failed to create virtual memory for PCH  
> c1xx: note: the system returned code 1455: The paging file is too small for this operation to complete.  
> c1xx: note: please visit [Precompiled Header (PCH) issues and recommendations - C++ Team Blog](https://aka.ms/pch-help) for more details  
> c1xx: fatal error C1076: compiler limit: internal heap limit reached  
> [2/3] Compile [x64] MovingPlatform.gen.cpp  
> [3/3] Compile [x64] MovingPlatform.cpp  
> Total time in Parallel executor: 0.56 seconds  
> Total execution time: 3.09 seconds  
> Build failed.

From the thread and search in internet, suggest to use (not working for me - UE5.4):

```auto
<?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>

```

  

But I find just use “MaxParallelActions” and it work.

```auto
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
  <BuildConfiguration>
    <MaxParallelActions>2</MaxParallelActions>
  </BuildConfiguration>
</Configuration>

```

  

The question is, when I try to change config it did not work and not detect if BuildConfiguration.xml file in these location:

> H:\work\workspace\unreal\ObstacleAssault\Saved\UnrealBuildTool  
> D:\Applications\Epic Games\UE\_5.4\Engine\Saved\UnrealBuildTool

But Unreal 5.4 do read and detect BuildConfiguration.xml in

> `<USER>/AppData/Roaming/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml`

Why It not read project based BuildConfiguration.xml? Also “MaxProcessorCount” in “LocalExecutor” and “ParallelExecutor” section is not working. What I do wrong?

Documentation say (and I assume it detect and read in order to override config):

> In addition to being added to the generated **Unreal Engine (UE)** project under the `Config/UnrealBuildTool` folder, **Unreal Build Tool (UBT)** reads settings from XML config files in the following locations on Windows:
> 
> - `Engine/Saved/UnrealBuildTool/BuildConfiguration.xml`
> - `<USER>/AppData/Roaming/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml`
> - `My Documents/Unreal Engine/UnrealBuildTool/BuildConfiguration.xml`
> - `<PROJECT_DIRECTORY>/Saved/UnrealBuildTool/BuildConfiguration.xml`

Thanks.

---

<div class="post-metadata">

**Author:** ![TimReago](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TimReago](https://forums.unrealengine.com/u/TimReago)\
**Post date:** [August 26, 2024, 3:55pm UTC](https://forums.unrealengine.com/t/what-the-order-for-file-buildconfiguration-xml-if-there-multi-location/1877197/2 "2024-08-26T15:55:54Z")

</div>

Trying to compile the UE engine from source, on an 8 core cpu with 32 GB RAM. I found that I needed a 16 GB swap file to work around the PCH header error problem. Apparently related to the number of concurrent compiler processes, each of which may be loading the PCH pre-built header separately. A larger C:\Epic\ drive (1 TB) and the extra swap file size, solve the build problem for me.
