This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello Dmitry Jemerov. First of all, I think that IntelliJ is really quite awesome. But it seems like the reason it is awesome is also the cause of its most frustrating problem. There are times when I am right in the middle of writing a line of code or navigating to another part of a class when IntelliJ locks up to update itself for upwards of 30 seconds at a time.
I think this has to do with it reinvestigating all the hooks it has in the files it is monitoring. While this is necessary to give it all the quick access to every class, it frustrates me as a developer when I'm in the middle of a thought and I have to wait for my IDE to catch up to me. This also occurs whenever I clean using ANT. It takes as long for IntelliJ to catch up with the cleaning as it does on startup.
My questions are: Does this problem have to do with all the monitoring of the file system that IDEA does? Is there any way you can think of to solve this problem?
If a pause happens in the middle of some action you're performing inside IDEA, most likely it's a garbage collection pause and not something related to file synchronization. To reduce the likelihood of such pauses, it's recommended not to make the heap excessively large (-Xmx256M should be sufficient for working with a single large project). Also, you can try to tune the garbage collector using the Hotspot VM options.