Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA 2016.2 high CPU usage

I have only one project (an ordinary SpringFramework project) opened. And the IDE is crazy using CPU:

enter image description here

JVisualVM CPU sample:

enter image description here

Note this happened just recently

Any idea?

like image 591
Gelin Luo Avatar asked Jul 26 '16 22:07

Gelin Luo


People also ask

Is IntelliJ CPU intensive?

I have frequent issues with my laptop fans going 100% and other tasks freezing because IntelliJ uses almost 100% of the CPU to reindex, to build the project. Even on small projects.

How do I make IntelliJ consume less memory?

From the main menu, select Help | Change Memory Settings. Set the necessary amount of memory that you want to allocate and click Save and Restart.

How much RAM should IntelliJ use?

IntelliJ IDEA memory usage Follow IntelliJ itself reports that it is using a little more than 1GB of heap but the OS reports that it is using anywhere from 3.5 to 4.5 GB.


1 Answers

The correct answer was posted by @matt-helliwell if you're coming from a version older than 2016.2.

File -> Invalidate Caches and Restart 

If the above doesn't fix your problem, track this issue: https://youtrack.jetbrains.com/issue/IDEA-157837

like image 173
kontinuity Avatar answered Sep 20 '22 19:09

kontinuity