Created
June 15, 2018 09:37
-
-
Save timlien/964b24ac1a99f3cc15876973b0441ecd to your computer and use it in GitHub Desktop.
IntelliJ IDEA 2018 JVM optimization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IntelliJ IDEA vm options | |
-ea | |
-server | |
-Xms2G | |
-Xmx4096M | |
-Xss2m | |
-XX:MaxMetaspaceSize=2G | |
-XX:ReservedCodeCacheSize=1G | |
-XX:MetaspaceSize=512m | |
-XX:+UseG1GC | |
-XX:-UseParNewGC | |
-XX:-UseConcMarkSweepGC | |
-XX:+DoEscapeAnalysis | |
-XX:SoftRefLRUPolicyMSPerMB=50 | |
-XX:+UnlockExperimentalVMOptions | |
-Djava.net.preferIPv4Stack=true | |
-Dsun.io.useCanonCaches=false | |
-XX:LargePageSizeInBytes=256m | |
-XX:+UseCodeCacheFlushing | |
-XX:ParallelGCThreads=8 | |
-XX:+DisableExplicitGC | |
-XX:+ExplicitGCInvokesConcurrent | |
-XX:+PrintGCDetails | |
-XX:+PrintFlagsFinal | |
-XX:+AggressiveOpts | |
-XX:+CMSClassUnloadingEnabled | |
-XX:CMSInitiatingOccupancyFraction=60 | |
-XX:+CMSClassUnloadingEnabled | |
-XX:+CMSParallelRemarkEnabled | |
-XX:+UseAdaptiveGCBoundary | |
-XX:+UseSplitVerifier | |
-XX:CompileThreshold=10000 | |
-XX:+OptimizeStringConcat | |
-XX:+UseStringCache | |
-XX:+UseFastAccessorMethods | |
-XX:+UnlockDiagnosticVMOptions | |
-XX:+HeapDumpOnOutOfMemoryError | |
-XX:+UseCompressedOops | |
-XX:-OmitStackTraceInFastThrow | |
-Dawt.useSystemAAFontSettings=lcd | |
-Dfile.encoding=UTF-8 | |
-Xverify:none | |
-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log | |
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof | |
-Xbootclasspath/a:../lib/boot.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
配置好长啊。。优化后效果如何?? what a long configuration list. How is the effect of this optimization?