PHPStorm high load CPU on Mac
Hello!
I noticed that for some reason PHPStorm uses 1000% of my CPU. As I see from the activity monitor this is because of ' Javascript and Typescript ' plugin.
Any suggestions on how can I solve this issue?
Please sign in to leave a comment.
We need to check what's causing this. 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. We also would need to check IDE logs: to collect them please run Help > Collect Logs and Diagnostic Data and share resulting archive. You can send this all to us using Help | Contact Support or via upload at https://uploads.jetbrains.com/ & letting us know the upload ID.
Hi!
Sure!
Upload id: 2022_09_27_SFdNJ3Jvn4yRBSmMER1Lwm (files: phpstorm-logs-20220927-201641876035292068832916.zip, PS-222.4167.33_tomfordrumm_27.09.2022_17.36.22.zip)
Unfortunately, I can't.
Is there another way to investigate this issue and find a silution?
Maybe you can try composing a sample project with a similar configuration where the issue can be reproduced?
Memory related issues are a known problem; I would kindly suggest to the Jetbrains team to provide a way to US THE USERS to find out a way to deal with that, as I have seen many posts about this problem. For example something that is a REAL issue is that NO MATTER how much RAM / CPU a device can have, PHPStorm (in my case) takes a percentage of it; some users have reported that it is NORMAL that if they have 64 GB memory, the IDE takes 15-16 of RAM... that is a LOT !!!!
I know that the are plugins that use more memory than other, like Laravel IDEA... is acceptable since it work with all references BUT.. it would be a better solution for the user to have the IDE to take a SPECIFIC or TOP memory ACCORDINGLY to the ram usage, THAN a percentage as it seems it happends.
Also (may be is not the place to request this) is better to ADD a PLUGIN RAM USAGE window or place to see this; and this will help also to the Jetbrains teams, as I can't image having a LOT of memory issues and having so many SNAPSHOTS to check, it is to much work.
So... please at least let me know if you can consider this...
I love PHPStorm so my comment is to have the user experiencie in a better level.
I am experiencing the exact same problem (and some of my colleagues also have the same issue).
To reproduce it, I simply have to open a VueJS file which is using TypeScript and the CPU usage goes through the roof. On my MacBook Pro with M4 Pro processors, all 12 cores goes to 100%.
Closing the file fixes the problem, however, when I reopen the file, the CPU goes to 100% again.
Very frustrating to be honest.
The CPU snapshot is uploaded under ID 2024_12_11_AsexhKcjchaNz7DV7ZBR4P.
Pieter Please try enabling the Use types from server in Settings | Languages & Frameworks | TypeScript and re-start the IDE. Will it help? If the issue persists,please share new snapshot taken while reproducing the issue plus the logs collected with the Help > Collect Logs and Diagnostic Data menu action in a new youtrack ticket (https://youtrack.jetbrains.com/issues/WEB) so we can investigate your problem more thoroughly.
Hi Elena,
I've reported it here as the suggested workaround didn't make a difference.
https://youtrack.jetbrains.com/issue/WEB-70797/High-CPU-usage-in-PhpStorm-with-certain-VueJS-files-using-TypeScript