Frequent hangs even with increased memory

Answered

Repost from an addition to a different post, since it seems to be another issue. AppCode frequently hangs with a rainbow wheel. In addition many operations which should be quick take many minutes, such as ^Space for autocompletion. 

  • 2013 Mac Pro
  • 64GB RAM

I increased the RAM footprint quite a bit which made it go from unusable to usable (and after the spin dump increased it to 16GB but still occurs), however it still frequently goes colorful wheel and hangs for a few minutes until it completes whatever it's doing which really kills productivity unfortunately. Examples that have triggered this

  • Help>Search Frequently this will hang
  • Stop debugging If the debugged app crashes AppCode will sometimes spin for some time
  • Right click Saw it just doing a right click in a source code window
  • Random click around the menu structure, frequent
  • Unknown Randomly it will freeze and spin for no apparent reason

 

On debugging I did try Instrumenting it to see what it was doing but the tool wasn't able to get anything without kdebug_signpost(), but here is a spindump Gist I created while it hung. This occurred by just clicking around the menus.

Related issue: ^Space (auto complete) is a frequent problem where it sits and spins, I'd rather have it preload the symbols for everything ideally on startup. 

 

Options:

-Xss2m
-Xms2000m
-Xmx6000m
-XX:NewSize=128m
-XX:MaxNewSize=128m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Xverify:none

-XX:ErrorFile=$USER_HOME/java_error_in_appcode_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_appcode.hprof
-Xbootclasspath/a:../lib/boot.jar
-Dide.no.platform.update=true
2 comments
Official comment

Hi Dan,

Please report issue in our tracker and include zipped contents of Logs folder (Help | Show Logs in Finder), CPU snapshot at the time of hang (better to have snapshot duration > 30sec). In case you're able to capture several CPU snapshots for the different cases of hangs that you described above - that would be great.

Done, thanks Tatiana. I captured two different hangs in this instance, one on autocompletion and the other on doing a Help>Search. 

0

Please sign in to leave a comment.