[Closed] Limit/set the number of parallel jobs when compiling?
Both when building a project and building the UE4Editor I cannot find a way to limit the number of parallel jobs that clang uses.
So I get:
I tried compiling the editor with make -j2 UE4Editor but the build tools completely ignore that.
My problem is that my cpu shows 4 available cpus (2 + 2 hyperthreading) but that gets me out of memory, too many processes, more than my 8GB occupied, system crash (happend two times).
I had to disable hyperthreading on the BIOS so that the build tools sees only 2 cpus and uses half the memory. But of course this is stupid, because I could for example compile with 3 jobs and it would be fine.
After disabling hyperthreading I get:
So, my question is: is there any way to limit/set the number of parallel jobs when compiling?
if not, what is the reason for that?
I tried googling a bit and looking for the build tools compile options but couldn't find the answer
The question has been closed Feb 05 '15 at 01:44 PM by amigo for the following reason:
The question is answered, right answer was accepted
Please edit Engine/Saved/UnrealBuildTool/BuildConfiguration.xml and add
2< /MaxProcessorCount >in-between
and < /BuildConfiguration >which will limit your processor count to 2 (or whichever other number you set there).
There are no spaces after the greater and smaller than signs, I just had to add them to actually display the tags in the post.
Follow this question
Once you sign in you will be able to subscribe for any updates here