Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memory problem when using XCode4

Updated to xcode4 days ago, xcode4 is really nicer to xcode3. But I met a memory issue when using xcode 4. The total active memory kept growing when the xcode4 war running, grew from 500m to 2.4G, the process memory is around 200m. It's strange~

After I closed xcode, the total active memory didn't go down soon, it was 2.4G for about 10 minutes.

Has anyone else met this issue too? Thanks for any info!

== Updates ==
Upgrade to XCode4.0.2, still has memory issue

like image 549
Fourj Avatar asked Nov 06 '22 00:11

Fourj


1 Answers

I have the same problem. At times Xcode 4 starts to index your project (you can see "Indexing" message in the status bar at the top of window). During that it could use up to 2.8GB (!) of memory.

As soon as it happens I stop to use my laptop and start to make tea :) If the swap exceeds 500M I restart my computer. I have 4GB of memory installed in my macbook 5.2 and there is no way to increase it :(

I don't know exactly what that "indexing" actually means. I supposed that it is connected with Code Sense in some way. But when I tried to disable code completion (preferences -> text editing -> editing), it didn't help.

I hope Apple would fix it in the next release. If not, the only way is upgrade my computer. Or use Xcode 3.2.

like image 113
y0prst Avatar answered Nov 15 '22 06:11

y0prst