Last active
August 29, 2015 14:07
-
-
Save nikreiman/3e63af9d6e8f0476a6ed to your computer and use it in GitHub Desktop.
CLion64 JVM properties for big, boosty projects (requires JDK8)
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
-ea | |
-server | |
-Xms1g | |
-Xmx4g | |
-Xss16m | |
-XX:+DoEscapeAnalysis | |
-XX:+UnlockExperimentalVMOptions | |
-XX:+UseConcMarkSweepGC | |
-XX:LargePageSizeInBytes=256m | |
-XX:ReservedCodeCacheSize=96m | |
-XX:+UseCodeCacheFlushing | |
-XX:+UseCompressedOops | |
-XX:ParallelGCThreads=8 | |
-XX:+UseConcMarkSweepGC | |
-XX:+DisableExplicitGC | |
-XX:+ExplicitGCInvokesConcurrent | |
-XX:+PrintFlagsFinal | |
-XX:+AggressiveOpts | |
-XX:+HeapDumpOnOutOfMemoryError | |
-XX:+CMSClassUnloadingEnabled | |
-XX:+CMSPermGenSweepingEnabled | |
-XX:CMSInitiatingOccupancyFraction=60 | |
-XX:+CMSClassUnloadingEnabled | |
-XX:+CMSParallelRemarkEnabled | |
-XX:+UseAdaptiveGCBoundary | |
-XX:+UseSplitVerifier | |
-XX:CompileThreshold=10000 | |
-XX:+OptimizeStringConcat | |
-XX:+UseStringCache | |
-XX:+UnlockDiagnosticVMOptions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm running CLion on a Linux machine with JDK8 (1.8.0_20-b26 to be exact) with 32Gb of RAM. So 4Gb for -Xmx works well for me, but you might want to decrease this value if your machine starts swapping heavily.