IntellIJ IDEA 启动 参数 配置

系统环境:

型号名称: MacBook Pro
型号标识符: MacBookPro11,4
处理器名称: Intel Core i7
处理器速度: 2.8 GHz
处理器数目: 1
核总数: 4
L2 缓存(每个核): 256 KB
L3 缓存: 6 MB
内存: 16 GB

 

软件版本:

IntelliJ IDEA 2017.2.4
Build #IU-172.4155.36, built on September 12, 2017
Licensed to phpdragon

JRE: 1.8.0_152-release-915-b11 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6

 

启动参数配置:

 

-server
-Xms4400m
-Xmx4400m
-Xmn1000m
-XX:PermSize=768m
-XX:MaxPermSize=768m
-Xss512K
-XX:ReservedCodeCacheSize=128m
-XX:SurvivorRatio=1
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:+UseCMSCompactAtFullCollection
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSInitiatingOccupancyFraction=70
-XX:+CMSParallelRemarkEnabled
-XX:+CMSClassUnloadingEnabled
-XX:CMSFullGCsBeforeCompaction=0
-XX:LargePageSizeInBytes=200M
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Dsun.rmi.dgc.client.gcInterval=10800000
-Dsun.rmi.dgc.server.gcInterval=10800000
-XX:SoftRefLRUPolicyMSPerMB=0
-XX:+DisableExplicitGC
-XX:+PrintClassHistogram
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintHeapAtGC
-Xloggc:gc.log

-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
-Xbootclasspath/a:../lib/boot.jar

 


编辑保存:

vi /Applications/IntelliJ\ IDEA.app/Contents/bin/idea.vmoptions

 

重新启动,开心的撸代码去吧!

 

 PS:

http://blog.csdn.net/kl28978113/article/details/53031710

你可能感兴趣的:(IntellIJ IDEA 启动 参数 配置)