Intelllij background indexing and downloading freezes ide.. and it is constantly doing the same

Answered

Hi

   I have a large maven intellij project which I have been maintaining using maven ultimate 2020.2 for about 4 months now. The experience is. not pleasant to put it mildly,

Every time I open the editor, indexing begins which goes on for at least 45 minutes, blocking me from any editing.

Frequently daily it starts downloading plugins and in the process freezes intermittently.

I compile in small batches using the command line- The moment I compile it restarts the whole indexing process. It is just illogically bizarre.

 

Please advise what can be done to make this editor's performance less intrusive. I am at my wits end.

5 comments
Comment actions Permalink

The issue can be related to the generated sources. If your compile process changes the source files that are under IntelliJ IDEA module source roots, reindexing will occur. Usually such roots should be marked as Generated Sources.

You can also add #com.intellij.openapi.util.io.FileSystemUtil:trace in Help | Diagnostic Tools | Debug Log Settings to see which files were changed and are indexed again in idea.log.

0
Comment actions Permalink

Hi Serge Baranov Thank you for the quick turnaround. I will add #com.intellij.openapi.util.io.FileSystemUtil:trace to see what is being indexed. Will also try the nextVersion. Hopefully that will work

 

0
Comment actions Permalink

Serge Baranov where can I see com.intellij.openapi.util.io.FileSystemUtil:trace. I am using https://www.jetbrains.com/idea/nextversion/?_ga=2.72532945.392189320.1603302016-92148527.1599243274 and it does not make a difference.

It indexes extremely slowly and every time I reopen the editor, do a build or switch branches,  or redownloads maven plugins and takes forever,

0
Comment actions Permalink

All the data will appear in the logs: https://intellij-support.jetbrains.com/hc/en-us/articles/207241085 (Help | Collect Logs and Diagnostic Data).

0

Please sign in to leave a comment.