Regular 100% CPU Usage After Update

Since the April 15th update, I'm now getting 100% CPU usage for around 10-20 seconds, every 5 minutes.  I was alerted to this happening because the cursor froze on the screen and the fans came on loudly.

I'm using a brand new 2021 iMac, this is a top spec machine, nothing else running in the background.  This started immediately after I installed the update.

What has changed that would result in this?  What can I disable?

10 comments
Comment actions Permalink

Hi there,

What kind of code-base you have got there? Does it uses a lot of array access? Could be

In any case: poor performance can be caused by many reasons. Every case has to be investigated separately. Please use "Submit a request" link at the top of this page (or use "Main Menu | Help | Contact Support..." from inside the IDE) and privately provide all needed info there:

https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems

1
Comment actions Permalink

I wanted to give you some feedback, because I've "fixed" my issue by rolling back to 2020.3.

The 100% CPU usage issue was all to do with analysing the control flow, I checked this in your activity monitor.  Now that I've rolled back to 2020.3, I get a yellow warning at the top of the page saying:

Control flow is too big to analyse

This is GOOD, the file is 14K lines long.  You might say that is too big, maybe it is, but the point is that it never caused a problem before 2021.1.

So it seems that 2021.1 has a higher threshold for analysing the control flow of a file, and it's not practical.  If there's a way to set my own threshold for control flow analysis, so that I can turn it off for really big files (or even turn it off altogether, I don't need it!) then I can try 2021 again in the future?

I doubt I'll be the only person with this problem.

2
Comment actions Permalink

@Rich

If you want PhpStorm devs to speed up fixing the issue, it would be good if you do as suggested earlier and provide the needed info via support ticket or PhpStorm Issue Tracker (you can make private attachments there):

  1. https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems
  2. The file in question (so there is a live example / code to work with)

P.S. Yes, I definitely suggest to make a much smaller files (a few K lines only): it's SO much easier to read, edit, and maintain it (depends on that file, of course).

1
Comment actions Permalink

I have the exact same problem when dealing with large file. mine is 38k lines

1
Comment actions Permalink

@Neo6053 It would be nice if you could submit a bug report/support ticket with the attached file that causes the issue.

0
Comment actions Permalink

@Rich same after updates. this any file. some one close tasks and dont worry about cpu, but we had to suffer...i think i waste my money, JB dont want to fix this! hope some one read this and fix this stupid shit. OBVIOUSLY there was bug, and still. PHPstorm use 100 while i dont use comp-turn back cause fan begin loudly spining!!!!   

0
Comment actions Permalink

Jobstas sorry to hear they still haven't fixed this.  As per my reply above, I rolled back to 2020.3 and I'm still on it.  This behaves perfectly, and I have no need for the newer updates.  I do think they should fix it.

If they're taking the position that people should code PHP in a certain way with smaller file sizes, then I think they've got it the wrong way around.  PhpStorm should adapt to the way their customers write code, not the other way around, especially when this issue was introduced by them in their own update.

I recommend that you roll back to 2020.3, your CPU will then settle down, regardless of the file size.

1
Comment actions Permalink

In addition. Reinstall sweet 2020.3 - no cpu leaks!!!!! 

PS

OS - win10

psps,

i think there some "feature" under-the-hood turned on by default in 21s versions. ML, or hidden data grabber, nevermind. The fact is -there some huuuuge trouble...but noone going to fix it.

0
Comment actions Permalink

@Rich, thx a lot for proper stable version! really i think i need to change my desktop ))) new ssd i have bought already =)

0

Please sign in to leave a comment.