PhpStorm 2019.2 memory problem

 

I just updated and the memory usage is out of control, anything I can do?

8
22 comments

Please submit a support request attaching your logs bundle (Help | Compress Logs): https://intellij-support.jetbrains.com/hc/en-us/requests/new?ticket_form_id=66731

0

Confirm the problem. It seems like jet memory leak. You do nothing and memory consumption increases linearly. Ubuntu. Will send report with logs.

 

 

 

1

I can confirm the problem on macOS 10.14.5 as well after upgrading this morning: after a while the IDE becomes unresponsive and the low memory dialog pops up. The only solution for me so far is to close PhpStorm and reopen it. 

2

I can confirm this too on Ubuntu 18.04. 2019.2 just runs out of memory during indexing even if I allocate 4GB+ to the IDE so I've had to downgrade back to 2019.1 (first major problem I've ever had from an update). Has a ticket been created yet, I can't find one on youtrack?

2

Also confirmed same problem on Ubuntu 19.04 with PHPStorm 2019.2 installed via snap system.  The solution was the same - downgrade to 2019.1 and all was well.  

I'm happy to send along logs or other diagnostic data to help solve the issue - feel free to contact me. 

2

Same problem here. Phpstorm now is unusable. It just consumes all memory and freezes. On Ubuntu 19.4 ver 2019.2 since the last snap update.
Can't work, please help.

0

Just found that  the database & sql bundled plugin is eating all memory and processor, disable it, and it will go back to normal. Pls let me know if its only me?

1

Thanks for the update! Probably, this one could be related:

https://youtrack.jetbrains.com/issue/DBE-8694

In fact, it is marked as fixed, however, there is a comment with the report for the stable version as well.

Would it be possible to try a workaround with "database.snapshots.auto" registry key?

Also, I was wondering if anyone else from this thread may confirm that the issue happens when the Database plugin is used.

1

Same problem. 

0

@Vasiliy I can confirm toggling that registry key off fixes the problem for me.

0

I disabled the Database plugin as per Fernando's suggestion and so far no more memory problems for me. I didn't try the registry fix.

1

The same problem in Win10. I have noticed that this leak quite less when debugger is off.

0

DId exactly what @Roberto did. Can confirm disabling Database plugin helped. From around ~4G memory consumption now it's just ~2.5G. Haven't tried the registry fix yet also.

0

Go the same issue two days ago, all of a sudden. PHPStorm 2019.3 installed via snap on Ubuntu, was working fine before.

Downgraded to 2019.2 and then to 2019.1, without any effect.

I got the idea to completely uninstall it (just keeping my preferences) and instead download the standalone version, which I remembered, has a console running in the terminal.

I spotted the issue quickly : logs were flooded by errors. The issue was coming from one specific project. I don't know why, PHPStorm was considering that my project had a git subrepo and was unable to find the files in it. And it was looping on it, over and over, until all the memory was exhausted. It was not related at all to memory allocation or faulty plugins.

Hope it helped.

0

Hi everyone, i was using the latest phpstorm and latest datagrip. I had the issue of memory leak from both. Just to confirm, i have downgraded to 2019.1 version for both and all seems fine and my lappy seems happy. Will update if it goes otherwise. Previously using the latest build. I swear ive both change the heap and vm option and yet, its chewing the life out of my ram up to 3gb. Imagine using the datagrip and phpstorm at the same time and both are chewing 6gb total at activity monitor but i have only set 2gb in each ide.

 

i will update if memory spike goes again

1

I was checking, why my ubuntu was freezing, check this on Ubuntu 20.04 :D (Webstorm 2021)

 

 

1

Hi Isaac. Memory consumption problems should be investigated individually. Do you mind sharing some info about your setup?

E.g.:

- a screenshot of your project view;

- something that would show IDE memory utilization

- right click the status bar and enable "Memory indicator" & attach a screenshot of it:

0

I have noticed something similar. I started the app yesterday evening, 225 of 1900M where allocated. I checked the Activity Monitor and noticed memory usage of about 1.04 GB. I did not worked with PHPStorm, I just started it. I have left the app open and this morning, the app showed 1.05 GB in Activity Monitor while PHPStorm showed something like 3xx of 1900M. I still didn't worked with PHPStorm and just browsed the web. 2 hours later, still not worked with PHPStorm, the Activity Monitor showed 3,x GB memory usage. Before I have closed PHPStorm yesterday, the memory usage was about 7.9x GB.

System: MacBookPro 15-inch 2018, macOS Big Sur 11.4, latest PHPStorm Version.

0

The indicator shows how much of the Java heap is occupied. The heap itself can (and usually does) take its whole size in the RAM + the overhead, so any RAM consumption below 2 * Xmx is justifiable.

https://intellij-support.jetbrains.com/hc/en-us/articles/360018776919-Understanding-IDE-memory-allocation-

So, 3GB is expected in case the Xmx value is 2048mb (can be checked in Help | Change Memory Settings), 7.9GB is not.

0

Is this still normal?

0

It might be, it really depends on the number of projects you have open and how heavy they are.
Please submit a support ticket (Help | Contact Support) attaching your logs when the RAM consumption reaches 5GB, we'll check if anything wrong. There's a chance that we'll need a memory snapshot later too.

0

Please sign in to leave a comment.