Skip to content

Instantly share code, notes, and snippets.

@nikreiman
Last active August 29, 2015 14:07
Show Gist options
  • Save nikreiman/3e63af9d6e8f0476a6ed to your computer and use it in GitHub Desktop.
Save nikreiman/3e63af9d6e8f0476a6ed to your computer and use it in GitHub Desktop.
CLion64 JVM properties for big, boosty projects (requires JDK8)
-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
@nikreiman
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment