Out of Memory building symbols

I have downloaded AppCode to try it at work, but when I load our Xcode project, it stalls out building symbols about 25% of the way through (visual estimate) and gives me the Out of Memory window. I have upped the Xmx value twice now to 4096 MB, and it still gives me the error.

When I check the Activity Monitor or top, it looks like the appcode process is only really using about 1 GB of space, spread across (looking now) 62 threads.

XX:MaxPermSize = 350 MB
XX:ReservedCodeCacheSize = 96 MB

Also, when I get that error window, the app is nigh unresponsive (it seems to process UI once every several seconds or so), and it takes several minutes to actually shut down.

The project is rather large and uses some pretty heavy boost/templatized code, so I'm not surprised it takes a while to build all the symbols, but it would be nice if I could get the app to actually finish loading so I could try it. I've used it on smaller projects at home and it works pretty well thus far.

Thanks for any assistance you can give me.

4 comments
Comment actions Permalink

Scott,
that's abnormal for AppCode to use more than 4GB of memory; could you please take a a memory snapshot as descibed here?

0
Comment actions Permalink

What does AppCode's memory indicator show? You can enable it at "AppCode | Preferences...  | Appearance | Show memory indicator".

0
Comment actions Permalink

Okay, so today when I tried re-running the whole thing (the only significant change being that it's been a few days since I tried it the first time and that I enabled the memory usage viewer), it indexed and build the symbols without issue in less than a half hour.

When all was said and done, it claimed 1182 MB, and then after a minute it dropped down to 960 of 4079 (which is odd only because I set it to allow 4096).

0
Comment actions Permalink

Maybe it didn't pick new settings up on the first launch or something.

As for RAM figures - some of the memory is reserved, AppCode doesn't have access to all of it. Actually 4079 looks very good for -Xmx4096 settings.

0

Please sign in to leave a comment.