Speedup IntelliJ-Idea

前端 未结 12 1783
轮回少年
轮回少年 2020-12-22 15:06

I\'m using intelliJ for Scala development and got 8 GB of new RAM last week, so I thought: time to use it. I checked my task manager and found intelliJ using ~2

12条回答
  •  天命终不由人
    2020-12-22 15:33

    I used this combination and it's working fine in my environment

    -server
    -Xms2048m
    -Xmx2048m
    -XX:NewSize=512m
    -XX:MaxNewSize=512m
    -XX:PermSize=512m
    -XX:MaxPermSize=512m
    -XX:+UseParNewGC
    -XX:ParallelGCThreads=4
    -XX:MaxTenuringThreshold=1
    -XX:SurvivorRatio=8
    -XX:+UseCodeCacheFlushing
    -XX:+UseConcMarkSweepGC
    -XX:+AggressiveOpts
    -XX:+CMSClassUnloadingEnabled
    -XX:+CMSIncrementalMode
    -XX:+CMSIncrementalPacing
    -XX:+CMSParallelRemarkEnabled
    -XX:CMSInitiatingOccupancyFraction=65
    -XX:+CMSScavengeBeforeRemark
    -XX:+UseCMSInitiatingOccupancyOnly
    -XX:ReservedCodeCacheSize=64m
    -XX:-TraceClassUnloading
    -ea
    -Dsun.io.useCanonCaches=false
    

提交回复
热议问题