Optimising AppCode

Answered

Hey

Can you give some advise on optimal appcode and VM settings for use on a MacBook Pro? I have some problems with hanging interface and long waiting times for e.g. auto complete.

PC stats

  • 3,3 GHZ intel core i7
  • 16 GB ram
  • Intel iris graphics 550 1536 MB
  • macOS High Sierra 10.13.3
4 comments
Official comment

Hi Jakob.

It might help to increase -Xmx value (via Help | Edit Custom VM Options) to, say, 4000m or more, enable "Show memory indicator" in Preferences | Appearance & Behavior | Appearance and watch it for a while (to see how much memory IDE consumes). In case the problem persists after increasing Xmx, please let us know.

Thanks but it is already set to 4000 :(

Here are the options set:

-Xss2m
-Xms1000m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:ReservedCodeCacheSize=500m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:+UseG1GC
-XX:-UseParNewGC
-XX:-UseConcMarkSweepGC
-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
-Xmx4000m
-Dide.no.platform.update=true
0

And the memory useage tells 1000 to 2000 of 4000 MB.

0

Then it makes sense to file an issue in our tracker, capture CPU snapshot while reproducing the problem (as described here) and attach to the issue. Also please attach zipped contents of Logs folder (Help | Show Log in Finder).

0

Please sign in to leave a comment.