PHPStorm 2022.3.3 slow CPU

Hello, found that when i lunch PHPStorm my CPU clock run down from ~3.5GHz to MAX 1.5GHz and usage on 100%, but when i turn off all instances od PHPStorm, CPU clock back to ~3.5GHz.

My stack Linux paml-dell 5.15.0-67-generic #74~20.04.1-Ubuntu SMP Wed Feb 22 14:52:34 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux (Zorin 16)

2
8 comments

Info from PHPStorm

 

PhpStorm 2022.3.3
Build #PS-223.8836.42, built on March 10, 2023
Runtime version: 17.0.6+1-b653.34 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.0-67-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Registry:
    run.processes.with.pty=TRUE

Non-Bundled Plugins:
    com.villains.intelij.plugin.trashpandatheme (2.0.4)

Current Desktop: zorin:GNOME

 

This non-bundled plugin (trashpandatheme) has no influence on performance, same on stock Dracula.

0

The system automatically reduces the maximum frequency when the CPU gets hot, it's called thermal throttling and is an expected behavior.

What is not expected is that PhpStorm produces 100% CPU load.
Could you please clarify if it happens constantly or during indexing only?
Please also share a screenshot of Help | Diagnostic Tools | Activity Monitor when you experience the issue.

0

Yeah, I know the thermal throttling behavior, but I don't think it is this problem, screen from sensors and s-tui below

Those are my actual temperatutres during "low" CPU clock.

It happens during indexing, after that, CPU clock returns to its default (~3.5GHz) values.

Activity monitor below.

0

It happens during indexing, after that, CPU clock returns to its default (~3.5GHz) values.

PhpStorm uses multiple cores for indexing; probably your system lowers the clock when multiple cores are in use.

Try stress-testing your CPU with 16 threads of load - I suppose you'll get the same behavior: https://askubuntu.com/a/948865

0

I'm noticing the same problem with low system clocks during indexing. My PC also becomes VERY slow, especially when running other JAVA apps. It sometimes becomes unresponsive or freezes completely.

Stressing my CPU with other tools does not trigger the same behaviour.

Are there any settings we can play with to reduce this issue?

0

The indexing could be quite a resource-consuming operation, so it is a somewhat expected.

However, it should not happen way too often. Do you experience full reindexing on each project open or does it start even during the working process?

0

I open multiple projects a day, some with 100k+ files in drupal/composer/npm directories. PHPStorm always seems to index a while, so I guess that's a full index on project open.

I would not mind the indexing too much if there were some resources left to do something else while it is indexing.

Are there any possibilities to tweak the amount of resources allocated to PHPStorm indexing so it uses less threads and avoids throttling CPU?

My system specs:

Manjaro Linux
Intel Core i7-1065G7
16 GiB of RAM
XPS 13 9300

 

0

Sadly, there is no way to limit CPU usage or a number of threads for the indexing operation. You may play around with a number of threads for scanning, it may help to slightly mitigate the processor usage. This option is controlled via the "caches.scanningThreadsCount" Registry setting. To access the Registry, just hit "Help > Find Action" and type "Registry" there. 

0

Please sign in to leave a comment.