The compiler is out of heap space
See original GitHub issueFirst, I just want to say thank you for your work - this is a really tremendous effort and has helped us a lot with out own tooling process.
We’re not using your ue4 python package directly but we have followed your docker image layout so we thought maybe you could give us some guidance. Basically, we’ve gotten all the way to the ue4-minimal image and are attempting to compile the build. When we run:
RUN .\Engine\Build\BatchFiles\RunUAT.bat BuildGraph -target="Make Installed Build Win64" -script=Engine/Build/InstalledEngineBuild.xml -set:HostPlatformOnly=true
We’re running into the issue fatal error c1060, the compiler is out of heap space. Specifically it’s getting to the [2/10] Compile UnrealHeaderTool Win64 step and that’s where it dies with the above error.
I’m assuming this is just a basic config step that we’ve missed - although not sure where (I think we’ve pretty much captured everything).
The only caveat is that we’re running this inside of a virtual machine which could affect it. However, it’s specs are:
- Parallels for Mac
- Windows Enterprise
- 2tb of storage
- 16gb or RAM
- 3 cores
Any idea’s for further investigation?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)

Top Related StackOverflow Question
@dskvr as I mentioned in this comment regarding minimum system requirements, you’ll need to do a bit of experimentation to determine the appropriate pagefile size for your system’s number of virtual CPU cores (basically the number of threads) and RAM. If your system has around 2GiB of memory per thread (e.g. 8 threads with 16GiB of RAM, 16 threads with 32GiB of RAM, etc.) then I’d recommend starting with a pagefile size equal to 50% of your RAM and then increase it in increments until you find the minimum value that works. If your system only has 1GiB of RAM per thread then I’d start with a pagefile size equal to 100% of your RAM and increment from there.
It’s also important to remember that updating the pagefile size requires a system reboot to take effect, so simply changing the values without rebooting the host system (or VM) will have no effect whatsoever.
Is there a suggested pagefile size to start at?
I’ve been using a 16gb pagefile and still unable to get a windows build while excluding both
debugandtemplates