Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA 13 extremely slow compilation

After setting up IntelliJ IDEA 13 with java 8 sdk for the first time i've noticed that the compilation process was extremely slow. Printing out a simple 'Hello world!' took exactly 3 minutes and 38 seconds. I have no idea what is causing it to be so slow. When i run the code in Netbeans for example it compiles and runs instantly. I've done some research and sought for solutions but other than removing plugins i wasn't able to find anything. Does anyone here have any idea what might cause this problem?

like image 686
Bram Jongebloet Avatar asked Mar 19 '14 10:03

Bram Jongebloet


People also ask

Why IntelliJ is very slow?

Increase memory for IntelliJ IDEA By default, the IDE requests a maximum of 2048 MB. You can change this option in Help → Change memory settings. According to the feedback from some of our users and colleagues with big projects, changing the option to 8GB significantly improves IDE performance.

Where is VM options in IntelliJ?

From the main menu, select Help | Edit Custom VM Options. If you do not have any project open, on the Welcome screen, click Configure and then Edit Custom VM Options. If you cannot start IntelliJ IDEA, manually copy the default file with JVM options to the IntelliJ IDEA configuration directory.

How do I stop auto compile in IntelliJ?

Open the Setting > Build Tools page. 2. Disable the "Reload changes in build scripts" option.

How do I recompile files in IntelliJ?

Open the needed file in the editor and from the main menu, select Build | Recompile 'class name' ( Ctrl+Shift+F9 ). Alternatively, in the Project tool window, right-click the class you need and from the context menu, select Recompile 'class name'.


1 Answers

Try to increase Build Process heap size. Here is pictorial detail how to increase Build heap size

like image 138
Yasir Shabbir Choudhary Avatar answered Sep 18 '22 12:09

Yasir Shabbir Choudhary