Xcode 4.1.1 taking very large amounts of memory on startup (up to 5.4 Gb)?

旧街凉风 提交于 2019-12-04 06:00:34

问题


I am currently developing a game with Xcode 4.1.1 (MBP recent, 8Gb mem). The project accounts for approximately 200K lines of objective-C, 2500 resources.

At times, Xcode comes to a screeching stall. I find i need to nuke it and restart. However, upon restart, Xcode bolts just about every byte of of free or inactive memory on my computer, and may eventually not start at all. In those circumstances, I see either mds or finder running furiously on multiple cores, and have to nuke them to even be able to nuke Xcode. After a few false starts, Xcode finally completes its startup (often parked around 3Gb).

Now, here is the kicker: if I quit and restart (multiple times), it will eventually settle around 250 Mb of memory, and be workable again ... until the next screeching stall.

Any ideas?


回答1:


Well, after weeks of fighting with this, i have noted that if you dont show the 'recent projects' panel at startup (there is a 'dont show' checkbox on the panel), but instead navigate via

File->open recent->theProjectInQuestion

the memory leak (pipeline actually) does not happen.



来源:https://stackoverflow.com/questions/8468218/xcode-4-1-1-taking-very-large-amounts-of-memory-on-startup-up-to-5-4-gb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!