Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA 12.1 eat 100% CPU from time to time

I've just updated my IntelliJ IDEA to latest 12.1 version and I found my laptop CPU usage become 100% from time to time, monitor the progress manager I found IDEA fork an new Java process regularly and it runs for several tens of seconds and shutdown. During that time the CPU usage is close to 100%:the screen capture

like image 481
Gelin Luo Avatar asked Apr 05 '13 01:04

Gelin Luo


People also ask

Does IntelliJ use a lot of CPU?

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. You need to add an option to limit the CPU usage, as it is now, it's not usable on a laptop.

What happens if my CPU usage is at 100 for a long time?

If the CPU usage is around 100%, this means that your computer is trying to do more work than it has the capacity for. This is usually OK, but it means that programs may slow down a little. Computers tend to use close to 100% of the CPU when they are doing computationally-intensive things like running games.

How much memory does IntelliJ use?

Intellij Idea consumes all 8GB memory allocated for it after upgrading to 2021.1. Intellij Idea consumes all 8GB memory allocated for it after upgrading to 2021.1.

Why does Pycharm use so much CPU?

When Pycharm performs some operations such as indexing, it starts draining the entire CPU resources. While this may achieve the operation faster, it heats up the CPU resulting in the fan running at full speed, and the other application becoming non-responsive.


3 Answers

Chances are the external build mentionned by @CrazyCoder compiles your project automatically when you make changes to your source files. If it annoys you too much, you can disable automatic compilation in File > Settings > Compiler > Make project automatically (uncheck the box).

like image 78
Bastien Jansen Avatar answered Nov 02 '22 01:11

Bastien Jansen


I had the IDEA 12 process itself (not a forked Java) occupy 100%, and respond very slowly to keypresses, navigation, etc.

Eventually I resolved this by cleaning out the cache, prefs, Application Support dir, etc and uninstalling/reinstalling IDEA 12. You have to reinstate your preferences and let Idea reindex your projects (due to removing its cache) - but this shouldn't take long.

Here's a list of some places to clean on OS X (slightly out of date for IDEA 12, but a useful starting point).

like image 38
Chris Avatar answered Nov 02 '22 01:11

Chris


I am using IntelliJ 13 Community Edition and have found this problem on Linux. It my case it is the Intelli JBehave plugin causing these issues.

When opening a dialog the CPU usage of the Java process drops right back to 5 to 10% percent. When disabling the plugin the same is true.

like image 1
Steve Avatar answered Nov 02 '22 01:11

Steve