IntelliJ indexing

109 views
Skip to first unread message

Matthew Chadwick

unread,
Jun 15, 2018, 5:03:50 AM6/15/18
to cur...@googlegroups.com
Could anyone shed some light on how to minimise IntelliJ's extravagant use of CPU ? I find some projects slow the whole system down as it's doing stuff (indexing...indexing...perpetually indexing) and wasting my CPUs. I notice that when I open a lein project first time, in the project settings under Modules, the .idea folder is included - which implies IntelliJ will be indexing its own project metadata doesn't it ? Seems like a waste of time...I find myself excluding that and other folders in the hope of reducing the IntelliJ's profligacy.

Niels van Klaveren

unread,
Jun 15, 2018, 5:44:46 AM6/15/18
to cur...@googlegroups.com
Perpetual indexing shouldn't be a thing. With me indexing only happens on changes in pom.xml or project.clj files. Could there be anything that triggers file touches in one of those ?

Or is it perhaps not indexing but do you have a Mercurial project and is the option 'Check incoming and outgoing changes' on in the VCS > Mercurial settings ?  It should say it's doing that in the status bar when active though, it's not the same as indexing.

That's a completely optional feature, which can interrupt editing in Cursive and kicks in quite often. My guess is it happens with problems connecting to the upstream repo, timing out and retrying ad infinitum.

That happened to me when it tried to connect to a local domain dns name while I was outside the domain. I disabled it for that reason, since I'm not bothered about incoming changes at all.

On Fri, Jun 15, 2018, 11:03 Matthew Chadwick <po...@celeriac.net> wrote:
Could anyone shed some light on how to minimise IntelliJ's extravagant use of CPU ? I find some projects slow the whole system down as it's doing stuff (indexing...indexing...perpetually indexing) and wasting my CPUs. I notice that when I open a lein project first time, in the project settings under Modules, the .idea folder is included - which implies IntelliJ will be indexing its own project metadata doesn't it ? Seems like a waste of time...I find myself excluding that and other folders in the hope of reducing the IntelliJ's profligacy.

--
You received this message because you are subscribed to the Google Groups "Cursive" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cursive+u...@googlegroups.com.
To post to this group, send email to cur...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cursive/181A47E2-8B96-4A38-B6EF-8EC29DC6EDFF%40celeriac.net.
For more options, visit https://groups.google.com/d/optout.

Colin Fleming

unread,
Jun 15, 2018, 7:18:27 AM6/15/18
to cur...@googlegroups.com
Hi Matthew,

Niels is right, IntelliJ shouldn't index continually. Could you go to Help->Enable Debug Log Categories and add "#com.intellij.openapi.project.DumbServiceImpl" there, then reproduce the problem and email me your log file?

Cheers,
Colin

Wilker

unread,
Jun 15, 2018, 7:50:27 AM6/15/18
to cur...@googlegroups.com
Matthew, I had some issues with this especially when working on CLJS projects, and I have a guess that's because a lot of files are changing under the project sub-directions, although those folders were ignored, I still feel like it was constantly indexing. What made it better for me was disabling automatic file sync, you can do that at Preferences -> Appearance & Behavior -> System Settings -> Synchronization -> Synchronize files on frame or editor tab activation (disable this).

The downside is I have to manually sync files (cmd+alt+y on mac), but I'm ok with that, at least now I can predict when I'll have slow indexes coming.

Reply all
Reply to author
Forward
0 new messages