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?
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.
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.
Open the Setting > Build Tools page. 2. Disable the "Reload changes in build scripts" option.
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'.
Try to increase Build Process heap size.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With