Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@literadix literadix commented Oct 1, 2015

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

@spdaly

This comment has been minimized.

Copy link

@spdaly spdaly commented Nov 13, 2015

No changes to Metaspace??

@edwardbeckett

This comment has been minimized.

Copy link
Owner Author

@edwardbeckett edwardbeckett commented Apr 25, 2016

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

@edwardbeckett

This comment has been minimized.

Copy link
Owner Author

@edwardbeckett edwardbeckett commented Apr 25, 2016

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

@managuli

This comment has been minimized.

Copy link

@managuli 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

This comment has been minimized.

Copy link

@juanluisrp juanluisrp commented Mar 9, 2017

@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

This comment has been minimized.

Copy link

@dispeakble dispeakble commented Mar 13, 2017

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

This comment has been minimized.

Copy link

@mariuszs mariuszs commented Sep 21, 2017

according to: -XX:+UseCompressedOops

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

@mariuszs

This comment has been minimized.

Copy link

@mariuszs 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