idea.vmoptions not used by default

Answered

After upgrading to 2019.2 my IntelliJ IDEA I wasn't able to launch it. Trying to launch from terminal gave me:

$ /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
2019-08-20 16:56:45.579 idea[16573:219291] allVms required 1.8*,1.8+
2019-08-20 16:56:45.583 idea[16573:219300] Value of IDEA_VM_OPTIONS is (null)
2019-08-20 16:56:45.583 idea[16573:219300] Processing VMOptions file at /Users/ddo/Library/Preferences/IntelliJIdea2019.2/idea.vmoptions
2019-08-20 16:56:45.584 idea[16573:219300] Done
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size

 

$ cat /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions

-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf
-Xverify:none

-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof

 

Explicitely providing IDEA_VM_OPTIONS did make it work again though:

IDEA_VM_OPTIONS="/Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions" ./idea

 

So any idea why idea.vmoptions isn't used by default now?

 

Versions:

MacOS: 10.14.6

IntelliJ Idea: 2019.2

$ java -version

openjdk version "12.0.2" 2019-07-16
OpenJDK Runtime Environment (build 12.0.2+10)
OpenJDK 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)

 

0
2 comments

Please see https://youtrack.jetbrains.com/issue/IDEA-219388 .

Adjust Xms/Xmx in the custom .vmoptions file located in the config directory: https://intellij-support.jetbrains.com/hc/articles/206544869, https://intellij-support.jetbrains.com/hc/articles/206544519.

/Users/ddo/Library/Preferences/IntelliJIdea2019.2/idea.vmoptions
1
Avatar
Permanently deleted user

Worked. Thank you very much!

0

Please sign in to leave a comment.