PhpStorm 2022.2.1 and CPU usage

Hi,

The new update seems to fix the freezing problem, however I'm concerned by the CPU usage which is constantly high, and the IDE doesn't look to be doing anything

There is no indexing operation in progress or anything else in background so I don't understand.

I've provided logs here : https://intellij-support.jetbrains.com/hc/en-us/requests/4237613

Edit: the CPU usage suddenly dropped to 0 but still I wonder why it was happening

Kind regards

评论操作 固定链接

You can check what PhpStorm is doing at any given moment at Help | Diagnostic Tools | Activity Monitor.
It makes sense to continue this conversation in the ticket you've submitted.

0
评论操作 固定链接

I have the same problem. Everything was running fine before the update.

0
评论操作 固定链接

Please reproduce the problem for at least half a minute while capturing CPU snapshot. Here's an article describing this, see the "The CPU usage is high or IDE is slow" section. You can then share the snapshot via https://uploads.jetbrains.com/. Also run Help > Collect Logs and Diagnostic Data and share/upload it as well.

0
评论操作 固定链接

CPU snapshot
Upload id: 2022_09_12_23eBPsYGrsa2JyoEapG5Lu (file: PS-222.3739.61_pic_12.09.2022_08.08.26.zip)
Diagnostic logs:
Upload id: 2022_09_12_pFKorepjHtFFY8cLNNzjon (file: phpstorm-logs-20220912-0812048886065928941704558.zip)


I use Windows 11 with WSL2

0
评论操作 固定链接

Thanks. The "Native" CPU load from IDE itself was just 10%. The rest is appears to be caused by NodeJS. Please try disabling NodeJS integration tools in your project & check which one is causing the load.

 

0
评论操作 固定链接

Hello,

Same problem on PHPStorm 2022.3 here with top at over 500% usage. 

On MBP mid-2015 16go ddr / 2.8Ghz i7

0
评论操作 固定链接

Cmonard, it seems that PhpStorm was indexing your sources when you took the screenshot. How did it go after indexing was finished?

0
评论操作 固定链接

This happens constantly to me several last releases (2022.2/3, don't sure because don't track it really)

After restart it usually helps for a while

CPU profiling - Upload id: 2023_01_17_2C2AFj5rYiMBUsFS6fXG27 (file: PS-223.8214.64_rush_17.01.2023_22.21.30.zip)

0
评论操作 固定链接
Roman Kunashko, according to the screenshot, the activity is generated by the VCS log. Do you have the Git tool window open when you see the load?
If not, do you maybe see the Git log indexing process in the status bar?
0
评论操作 固定链接

Eugene Morozov

> Do you have the Git tool window open when you see the load?

No, but it was opened before. But the active project has really new git repo with maybe 20 commits or so, not sure that it should generate so much load.

> If not, do you maybe see the Git log indexing process in the status bar?

No, it didn't have any indexing running.

0
评论操作 固定链接

Eugene Morozov it's still does it but i notice it happens on large file (over 4700 lines) 

I will ask ppl in my team to make smaller files 😄 


0
评论操作 固定链接

Hello,

With the latest version I also have a high CPU usage. There is no apparent process running in the background, not even indexing. If I close all tabs (not the IDE itself) it stops. It is random, it is not happening everytime but when it does, it can freezes the entire computer for minutes.

Here is a screenshot of the activity monitor

I can't see any sign of a progress bar when it happens.

Note that I have Git and TortoiseGit installed on my laptop.

I also see a lot of "threadDumps-freeze" folders in the log directory.

Kind regards

0
评论操作 固定链接

Daniil Maslov I have a similar problem with "Plugin JavaScript and TypeScript"  Upload ID: 2023_01_25_7Xtppwi4wp4QiGatKQJR1W

0
评论操作 固定链接

What version of PhpStorm are you using?

0
评论操作 固定链接

Happens to me all the time for many years, on different computers, typical problem on Ubutnu:

I want to try to change Open JDK to Oracle JDK, can it be the reason?

0
评论操作 固定链接

Artbonvic, PhpStorm bundles a custom JDK to run the IDE. You can upload a CPU snapshot and IDE logs that I mentioned above for further investigation.

0
评论操作 固定链接

Same issue. Sometimes Process total CPU usage can get up to 500 or more while doing absolutely nothing in the IDE. No indexing, nothing.

Upload id: 2023_03_01_wky8fGFH6b4xiVneXEDYyY (files: phpstorm-logs-20230301-130210.zip, PS-212.5457.49_01.03.2023_13.01.39.zip)

0
评论操作 固定链接

latest version I also have a high cpu usage. There is no apparent process running in the background, not even indexing. If I close all tabs itstops.
CPU model intel i5 11400kf
RAM: 16gb 3600Hz

Upload id: 2023_03_03_XJyzmcSjJj3wbjzj3WEnGs (files: Screenshot_30.png and 2 more)

0
评论操作 固定链接

@Scott
As far as I see from the log file, you have a pretty outdated IDE version (PhpStorm 2021.2.3).
Would it be possible to update it to the most recent build (2022.3.2) and check if performance improves?
There are lots of changes since the version that you currently have.

 @1070757
Unfortunately, it hard to say anything without checking logs and CPU snapshot first. Would it be possible to collect these and submit a support request or a YouTrack report?

0
评论操作 固定链接

Same issue. PhpStorm 2022.3.2

Upload id: 2023_03_07_5kxABJZZZTrZSKDsPVRk22 (file: PS-223.8617.59_cz406048_07.03.2023_14.42.23.jfr)

Thank you.

0
评论操作 固定链接

Folks, just a friendly reminder -- in case of performance issues, please submit YouTrack/Support tickets separately. Although there are some commonly known bugs, in most cases, performance cases are quite personal and depend on specific scenarios, setups, etc.

@Peter Morkusa, 
Could you please try to untick the whole "Settings | Editor | Inlay Hints > Code vision" settings node and check if performance improves?

0
评论操作 固定链接

i'm having a similar issue with the latest version on my new macbook air...it's causing it to heat up to the point where i can't even sit here with the computer on my lap while traveling to write code, because it's uncomfortably hot (which is the entire reason i bought the air to begin with). i've already got an open ticket investigating a memory leak, can/should i add to that ticket for the CPU usage issue or create a new ticket for this?

0
评论操作 固定链接

Both CPU usage and memory leak may have the same root cause, so I would start from adding more information to the existing ticket.

0

请先登录再写评论。