Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA won't start

When I open Intellij 14 , it starts the initial loading and then following is shown in the screen.After that it is vanished and program does not start.

enter image description here

But when I open the task manager it is shown in the Processes as per the below figure.

enter image description here

Sometimes the program starts after about 10 minutes .Sometimes it won't start at all.Can someone give me a solution on how to overcome this problem ?

like image 297
Lasitha Konara Avatar asked Jul 30 '15 05:07

Lasitha Konara


People also ask

What to do if IntelliJ IDEA is not opening?

So, in order to fix this issue, go to C:\Users\<your_username>\. IntelliJIdea<version>\config (or your OS' equivalent) and delete the idea.exe. vmoptions and/or idea64.exe. vmoptions file from there.

How do I fix my IntelliJ IDEA?

From the main menu, select File | Repair IDE. IntelliJ IDEA will automatically launch the first recovery step and refresh the virtual file system. IntelliJ IDEA will display a notification that you can use to continue or complete the recovery process.

How do I launch IntelliJ?

To run IntelliJ IDEA, find it in the Windows Start menu or use the desktop shortcut. You can also run the launcher batch script or executable in the installation directory under bin. Run the IntelliJ IDEA app from the Applications directory, Launchpad, or Spotlight.

How do I start IntelliJ from terminal?

From the main menu, select View | Tool Windows | Terminal or press Alt+F12 .


2 Answers

Just like Tom, I too have increased the memory when IntelliJ asked and regretted it. This is the screen that asked for it:

enter image description here

However, in my case, instead of editing the .vmoptions files in the bin folder, IntelliJ created a new one in my home directory which I can only assume overrides the ones in the bin folder. I would assume this is typical of the new versions - I am using IntelliJ 2016.1 right now.

So, in order to fix this issue, go to C:\Users\<your_username>\.IntelliJIdea<version>\config (or your OS' equivalent) and delete the idea.exe.vmoptions and/or idea64.exe.vmoptions file from there. This should remove the override and have IntelliJ use the settings in the bin folder.

It might be worth checking the files in the bin folder as well, in case IntelliJ changes how it handles these settings.


Here are the default .vmoptions files in the installation's bin folder; you can't delete these as it will prevent IntelliJ from starting:

bin/idea.exe.vmoptions:

-server -Xms128m -Xmx512m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=150m -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djsse.enableSNIExtension=false -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 

bin/idea64.exe.vmoptions

-Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=225m -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djsse.enableSNIExtension=false -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 
like image 176
Vlad Schnakovszki Avatar answered Oct 02 '22 11:10

Vlad Schnakovszki


I got an out-of-memory dialog on intellij 15 and took an option on that dialog to increase max memory. Thereafter I could not start intellij. So, I looked in the intellij /bin folder for a pid file (per another stack overflow question) to see what was happening, but I could not find one. There was however a file (idea.exe.vmoptions) that had changed (to hold my new memory setting). So I edited that file to set max memory back to what I had before, and now it works.

like image 28
Tom Murphy Avatar answered Oct 02 '22 11:10

Tom Murphy