Skip to content

Instantly share code, notes, and snippets.

@edwardbeckett
Last active March 22, 2024 20:18
Show Gist options
  • Star 56 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • Save edwardbeckett/4bbb1bcaad3f900e7305 to your computer and use it in GitHub Desktop.
Save edwardbeckett/4bbb1bcaad3f900e7305 to your computer and use it in GitHub Desktop.
Java 8 Intellij 64 JVM Options
-server
-Xms2g
-Xmx2g
-Xss16m
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:ConcGCThreads=4
-XX:ReservedCodeCacheSize=128m
-XX:+AlwaysPreTouch
-XX:+TieredCompilation
-XX:+UseCompressedOops
-XX:SoftRefLRUPolicyMSPerMB=50
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djsse.enableSNIExtension=false
-ea
@literadix
Copy link

But why do you enable assertions? I suppose disabling ea would be better.

@spdaly
Copy link

spdaly commented Nov 13, 2015

No changes to Metaspace??

@edwardbeckett
Copy link
Author

@spdaly Nope... If you have any suggestions I'm quite open to mods... :)

@edwardbeckett
Copy link
Author

edwardbeckett commented Apr 25, 2016

@literadix ~ ea ~ for IDEA ... to have assertion support for maven testing... :)

@managuli
Copy link

managuli commented Mar 6, 2017

When application is launched in IntelliJ, the maven log show JVM options like "C:\Program Files\Java\jdk1.8.0_25\bin\java" -Xms256m -Xmx500m
I dont know from where does it pick them as I have configured differently in the idea64.exe.vmoptions

@juanluisrp
Copy link

@managuli you can set up the VM params for launching an application in the Edit configurations... dialog https://www.jetbrains.com/help/idea/2016.3/changing-run-debug-configuration-defaults.html

@dispeakble
Copy link

much better! give this man a banana! I used to check the "power saving mode" to prevent it from stuttering. ON A FREAKING i7 4790k/32GB/64-bit/ssd

@mariuszs
Copy link

according to: -XX:+UseCompressedOops

Compressed oops is supported and enabled by default in Java SE 6u23 and later.

@mariuszs
Copy link

mariuszs commented Sep 21, 2017

In IntelliJ 2017.2.3+ reserved code cache size is bigger:

-XX:ReservedCodeCacheSize=240m

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