# Limit CPU cores or thread numbers in UAT Cooking process

**URL:** <https://forums.unrealengine.com/t/limit-cpu-cores-or-thread-numbers-in-uat-cooking-process/2662019>\
**Category:** Mobile\
**Tags:** unreal-engine, question\
**Created:** [October 3, 2025, 11:58am UTC](https://forums.unrealengine.com/t/limit-cpu-cores-or-thread-numbers-in-uat-cooking-process/2662019 "2025-10-03T11:58:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IAmNoBody2we](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IAmNoBody2we](https://forums.unrealengine.com/u/IAmNoBody2we)\
**Post date:** [October 3, 2025, 11:58am UTC](https://forums.unrealengine.com/t/limit-cpu-cores-or-thread-numbers-in-uat-cooking-process/2662019/1 "2025-10-03T11:58:30Z")

</div>

I am building my UE project in GitLab pipeline, running in docker container, Unreal Engine 5.6.1

It works well in my local machine, but always fails on the server.The reason is because the server has 768 CPU Cores, and it triggers an error.

> #9 124.2 LogCook: Display: Garbage collection triggered (Soft). Triggered by conditions:
> 
> #9 124.2 CookSettings.SoftGCTimeTrigger: Periodic triggering of SoftGC: No duration data.
> 
> #9 124.2 LogCook: Display: Cooked packages 8 Packages Remain 1033 Total 1041
> 
> #9 124.2 LogCookCommandlet: Display: GarbageCollection… (Periodic GC)
> 
> #9 124.2 LogConfig: No local boot hotfix file found at: [../../../Engine/Programs/ShaderCompileWorker/Saved/PersistentDownloadDir/HotfixForNextBoot.txt]
> 
> #9 124.2 LogOutputDevice: Warning:
> 
> #9 124.2
> 
> #9 124.2 Script Stack (0 frames) :
> 
> #9 124.2
> 
> #9 124.2 Assertion failed: NumberOfObjectsPerThread \* (NumThreads - 1) \<= MaxNumberOfObjects [File:./Editor/UnrealEd/Private/Cooker/CookGarbageCollect.cpp] [Line: 274]
> 
> #9 124.2
> 
> #9 124.2 LogCore: Error: appError called: Assertion failed: NumberOfObjectsPerThread \* (NumThreads - 1) \<= MaxNumberOfObjects [File:./Editor/UnrealEd/Private/Cooker/CookGarbageCollect.cpp] [Line: 274]
> 
> #9 124.2
> 
> #9 124.2
> 
> #9 124.2 CommonUnixCrashHandler: Signal=11
> 
> #9 124.2 Signal 11 caught.

```auto
/home/ue5/UnrealEngine/Engine/Build/BatchFiles/RunUAT.sh -ScriptsForProject=/source/XXX.uproject BuildCookRun -project=/source/XXX.uproject -noP4 -clientconfig=$CLIENTCONFIG -utf8output -platform=Linux -targetplatform=Linux -build -cook -allmaps -AllowStagedLightmaps -compressed -stage -pak -archive -unversionedcookedcontent -archivedirectory="/output/" 

```

Is there any parameter to limit the CPU counts?

---

<div class="post-metadata">

**Author:** ![IAmNoBody2we](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IAmNoBody2we](https://forums.unrealengine.com/u/IAmNoBody2we)\
**Post date:** [October 3, 2025, 11:21pm UTC](https://forums.unrealengine.com/t/limit-cpu-cores-or-thread-numbers-in-uat-cooking-process/2662019/2 "2025-10-03T23:21:20Z")

</div>

> **[Unreal Engine Command-Line Arguments Reference | Unreal Engine 5.6...](https://dev.epicgames.com/documentation/en-us/unreal-engine/unreal-engine-command-line-arguments-reference)**
>
> List of command-line arguments available for Unreal Engine.

There is a `foregroundworkers` option in Editor, but I dont know if I can use it in AutomiationTool
