Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JetBrains IntelliJ Idea taking very long time to "make"

For some reason IntelliJ seems to be having an issue where it takes minutes to compile a simple Java program. Here is a picture of it taking 1 minute and 54 seconds to compile the most basic "Hello World" program:

enter image description here

That was taken compiling using java 8. I tried again using java 7 and here's a screen shot of that attempt:

enter image description here

It took 3 minutes 42 seconds. This is not only happening the very first time; it is happening every time I compile, even the second or third time compiling it. If I was to compile it by clicking "Make Project" then click "run" it would remake the project, taking another 2minutes just to run it... This is becoming a serious issue and any help is greatly appreciated.

Edit:

I'm running Windows 8 on an Intel i7.

SOLVED:

For anyone else having this problem... Check if you have MalwareBytes: Anti-Exploit installed. For me it severely impacted the performance of any of the IDE's I tried to code Java in, and was the ultimate cause of this issue. :)

Thanks, Sean.

like image 818
Sean Avatar asked Jul 14 '14 22:07

Sean


1 Answers

Bang.. I was going to suggest the same. Always prefer to exclude the build directory from your anti-virus scan. Had the same issue for quite some time with McAfee installed on my system... but eventually realized that it was scanning for new files which were created post build process.

like image 89
Vivek Nanda Avatar answered Oct 01 '22 15:10

Vivek Nanda