Skip to content

Instantly share code, notes, and snippets.

@eddieberklee
Last active August 17, 2017 16:53
Show Gist options
  • Save eddieberklee/71045fa8e55b59c55019b22661cfe717 to your computer and use it in GitHub Desktop.
Save eddieberklee/71045fa8e55b59c55019b22661cfe717 to your computer and use it in GitHub Desktop.
best_vmoptions
# custom Android Studio VM options, see http://tools.android.com/tech-docs/configuration
-Xms1024m
-Xmx2048m
-XX:MaxPermSize=1024m
-XX:ReservedCodeCacheSize=800m
-XX:+UseCompressedOops
-XX:+HeapDumpOnOutOfMemoryError
# Sets the size of the allocated class metadata space that will trigger a GC the first time it is exceeded, default max value is 350m
-XX:MetaspaceSize=512m
-XX:+UseConcMarkSweepGC
# https://github.com/artem-zinnatullin/AndroidStudio-VM-Options/blob/master/studio.vmoptions
# Runs JVM in Server mode with more optimizations and resources usage
# It may slow down the startup, but if you usually keep IDE running for few hours/days
# JVM may profile and optimize IDE better. Feel free to remove this flag.
# -server
# editor
-Dsun.java2d.d3d=false
-Dsun.java2d.opengl=true
-------------------------
This is some other crazy vmoptions file from a blog:
(http://tomaszdziurko.com/2015/11/1-and-the-only-one-to-customize-intellij-idea-memory-settings/)
-server
-Xms2g
-Xmx2g
-XX:NewRatio=3
-Xss16m
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:ConcGCThreads=4
-XX:ReservedCodeCacheSize=240m
-XX:+AlwaysPreTouch
-XX:+TieredCompilation
-XX:+UseCompressedOops
-XX:SoftRefLRUPolicyMSPerMB=50
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djsse.enableSNIExtension=false
-ea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment