XCBBuildService eat up huge memory cause supper lag of the system.

doing game developing using UnrealEngine4.20.3 using 4.20.3 because support for iOS12. but opening the xcode workspace causing indexing using XCBBuildService which slowly eat up all the system memory. I am using iMac with 16GB memory, when XCBBuildService eat up over about 9.7GB and still going up, the system experance super lag every action took over 10 second or more.

Answered by ruberband in 333157022

any way I can improve this?


Edit: found a way to evade this on stackoverflow


turn off indexing

defaults write com.apple.dt.XCode IDEIndexDisable 1

turn on indexing

defaults write com.apple.dt.XCode IDEIndexDisable 0


but unless not plan to do coding on xcode, index is needed. have to down grade xcode again ......


Edit: found cause for the problem, I use xcode 10 on macos 10.13

after upgrade the macos system to 10.14 problem resolved, memory peek still very high, but no obvious lag.

Accepted Answer

any way I can improve this?


Edit: found a way to evade this on stackoverflow


turn off indexing

defaults write com.apple.dt.XCode IDEIndexDisable 1

turn on indexing

defaults write com.apple.dt.XCode IDEIndexDisable 0


but unless not plan to do coding on xcode, index is needed. have to down grade xcode again ......


Edit: found cause for the problem, I use xcode 10 on macos 10.13

after upgrade the macos system to 10.14 problem resolved, memory peek still very high, but no obvious lag.

XCBBuildService eat up huge memory cause supper lag of the system.
 
 
Q