PHPStorm Memory issues: sometimes almost 3Gb RAM usage

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.

1 comment
Comment actions Permalink

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

In fact, the memory consumption depends on the Java heap size which you can configure at Help | Change Memory Settings.
If it's set to 2048mb, PhpStorm can occupy up to ~4GB because of the overhead: https://intellij-support.jetbrains.com/hc/en-us/articles/360018776919-Understanding-IDE-memory-allocation-

The way Java works, as the VM needs memory, it fills up the heap. When the application no longer needs as much memory, Java doesn't fully shrink it, it empties the heap, but its size only gets slightly smaller.

That is why when you see reasonable memory consumption in the status bar memory indicator in PhpStorm, the process might still have a hefty RAM consumption value. Sadly, there isn't much we can do about it.

So, if you want to decrease the memory footprint, the only reliable way is to decrease the heap size via Help | Change Memory Settings, but there's a limit you can do that to - at some point, you'll start getting low memory signals because our stuff just won't fit anymore.

Also (may be is not the place to request this) is better to ADD a PLUGIN RAM USAGE window or place to see this

Unfortunately, it's technically impossible - plugins spawn objects that are not different to the ones PhpStorm generates itself.

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 !!!!

Well, if they set the heap size to 12-16GB - it's not surprising at all... We don't recommend doing that even if you can afford it - the garbage collector will start choking and you'll worsen the performance instead of improving it.

0

Please sign in to leave a comment.