IntelliJ won't start up

Answered

I am on windows 10 and after a few months of inactivity I tried to start up IntelliJ idea and faced an issue where it won't start up, I tried to uninstall, reinstall and update to newer versions however it still refuses to start up. When I got a suggestion to remove the plugins paths from vmoptions it turned out I have no path for plugins in there so it cant be the cause of the problem.

I tried to add -Didea.plugins.path=  at the end of the vmoptions but it had no result.

the only change there was after the long time of inactivity is that i got a java update.

0
4 comments

Does is start with idea.bat per https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line?

If it fails, share the output from the terminal.

If it freezes, provide the thread dumps using jstack per https://intellij-support.jetbrains.com/hc/en-us/articles/206544899.

If the .bat starts, but the .exe crashes/terminates, please answer these questions:

Are there any events logged in the Windows Event Log when it happens? https://www.howtogeek.com/123646/htg-explains-what-the-windows-event-viewer-is-and-how-you-can-use-it/ .

Are there any `java_error_in_*.log` files in the user home directory?

Are there any crash dumps (`idea64.exe.dmp`) files in `C:\Users\<user>\AppData\Local\CrashDumps\` directory?

You can share the crash logs/dumps via https://uploads.jetbrains.com.

0
Picked up _JAVA_OPTIONS: -Xms4096m
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size

is what i get. earlier today i changed it from -Xms2048M to this but even before i changed it, intellij refused to start up

0

Remove _JAVA_OPTIONS environment variable and logout/login or reboot. -Xms cannot be more than -Xmx. The default -Xmx for IntelliJ IDEA is 750m.

To change IntelliJ IDEA VM options use Help | Edit Custom VM Options instead of doing it globally for all the Java apps on your system via the environment variable. If you want to override the max heap size for all the apps, use -Xmx instead of -Xms. With your current _JAVA_OPTIONS most of the Java apps will fail to start on your system, this setting makes no sense.

0

Changing it from -Xms to -Xmx solved the issue, thank you for the help and for your time.

0

Please sign in to leave a comment.