PHPStorm 2020.3 very slow

Answered

I have what is probably a pretty non-standard installation, but it's worked well enough for me in the past. Since the update to 2020.3, it's been painfully slow to do basically everything.

My setup is an Ubuntu Focal server running on an AWS EC2 node, with an X server running on my local Windows laptop which PHPStorm operates through. (I tried it with an RDP connection too, and the performance was about the same either way.) It's always been a bit slow to do anything that requires opening a new window (searches, "do you want to add this file to git", etc.), but scrolling and typing and opening different files has been just fine, and the convenience of having it running on the same system as the web server has been worth the tradeoff for me.

For the past 10 days or so, though, it's been like molasses to do anything. Scrolling, opening menus, clicking anything, even typing, it takes 2-5 seconds to respond. I have confirmed that my internet speed is the same as it always was. Rebooted the dev system. Rebooted the laptop. It's the same project that I was working on before, no substantial changes there. Only thing I can think of is that PHPStorm upgraded itself to 2020.3.

I thought maybe it was a memory issue, that PHPStorm was previously under some magical number that my server handles comfortably, and with new features of 2020.3 it's gone over that, causing swapping. But changing the instance to the next larger option, doubling the RAM from 4GB to 8GB doesn't have any appreciable effect on performance.

Performance profile indexing results at upload id: 2020_12_15_SPXoahFdPnL93y9L (file: PS-203.5981.175_ubuntu_15.12.2020_16.08.51.zip)

4
20 comments

Just realized I can use snap to revert to 2020.2, and can confirm that it is indeed much more responsive. Hopefully 2020.3.1 will resolve whatever my problem was, and/or that my profiling results are useful to the devs.

0

Thanks for the upload. Unfortunately it doesn't show anything extraordinary, CPU usage doesn't go above 50%:

Could you please run Help > Collect Logs and Diagnostic Data and upload resulting archive also? 

0

Hello. Facing same issue. Standard installation through Toolbox app.

2020.3 is laggy and I cant outline a specific place - it happens pretty much everywhere.

I recorded two videos that might glimpse the issue during project files scrolling. Same machine, same environment, just switched version via Toolbox app.

2020.2.4 performs as previously - https://youtu.be/0Y-tE0NlxqM

2020.3 laggy - https://youtu.be/2JMmXsm-cxg

2

Thanks for the video, that's wild. Could you please run Help > Collect Logs and Diagnostic Data and upload resulting archive? You can do that via https://uploads.jetbrains.com/, only we can see the uploads.

0

Here goes:

Upload id: 2020_12_18_5bokX5jA6UDvciN7 (file: phpstorm-logs-20201218-222232.zip)

0

Thanks! Logs doesn't show anything abnormal. Could you please reproduce the problem for at least a minute while capturing CPU snapshot? Here's an article describing this, see the "The CPU usage is high or IDE is slow" section.

0

Upload id: 2020_12_22_9fEzEzperkQNG7DQ (file: PS-203.5981.175_am_23.12.2020_01.55.16.zip)

During capturing of this snapshot I was mostly navigating the project files - scrolling (both with scrollbar and mousewheel).

0

Thanks! The slowness is caused by native java 2d rendering. Do you have anything uncommon in your setup? Like HiDPI scaling, external monitors? 

Are there any graphic card firmware updates available that you can install & test?

0

Do you have anything uncommon in your setup?

Can't think about anything specific. It's a generic Fujitsu Esprimo E9900 workstation with 8GB of RAM and three ssd's.

Like HiDPI scaling, external monitors?

No. Single 27" monitor with native 1920x1080 resolution.

Are there any graphic card firmware updates available that you can install & test?

I don't think so. I keep the system updated every time operating system prompts me (running Lubuntu, based on Ubuntu 18.04 LTS).

The system is based on Intel i5-650 with integrated graphics. I do realize that this is somewhat old setup, however it performs good with PHPStorm 2020.2.4 and below.

I tried 2020.3 today on a more modern system, with i5-4590 cpu and dedicated videocard, on which I can confirm that it's not laggy and performs as expected. Maybe there was specific change in 2020.3 that eventually requires some specific system capabilities?

0

No, I don't think there were such changes. And I don't recall any similar complaints after a 2020.3 release.

I'm sure this can be addressed if investigated deeper: I would suggest submitting this to our tracker at https://youtrack.jetbrains.com/newIssue fora corresponding team to look, or contacting us via Help | Contact Support. We'll be able to forward/escalate this to a core team for a further investigation.

0

Okay, I got the point.

Prior to creating an issue I think I would try on several other machines first, hope this could create a better picture of the problem.

Thank you.

2

Apologies for the delay, it's been a very hectic week.

I tried to run Help > Collect Logs and Diagnostic Data but it doesn't seem to do anything. I get the dialog prompting to "show in file manager", but clicking that doesn't do anything other than close the dialog. Perhaps because of how it am running X remotely? Can you tell me where in the filesystem I should look for this?

EDIT: I think I found it. I have zipped up the contents of the log folders for both 2020.2 and 2020.3.

Upload id: 2020_12_24_3fHPPCEsPwjVf46i (files: 2020.2.zip, 2020.3.zip)

1

Greg Schmidt

Thanks for the logs. Please try to open Help | Edit Custom VM Options... , add -Dsun.java2d.xrender=false line, restart IDE & check if it helps.

The problem is being investigated in https://youtrack.jetbrains.com/issue/IDEA-257140 & https://youtrack.jetbrains.com/issue/JBR-2963.

0

Unfortunately, no improvement by doing this. New logs running this way:

Upload id: 2020_12_30_QSwXXd5btGZb8g2j (file: 2020.3.xrender.false.zip)

0

Hi Greg Schmidt,
Please try to add -Dsun.java2d.pmoffscreen=false to .vmoptions file and restart the IDE. (Help | Edit Custom VM Options...)

1

Snap updated my to 2020.3.1, and I've made this change (the previous one is also still in place), but if anything it's even worse. :-(

Upload id: 2020_12_30_59QW1Fn7xR9y4SjG (file: 2020.3.1.pmoffscreen.false.zip)

0

I've raised a new issue in YouTrack and collected all the needed information. Please follow https://youtrack.jetbrains.com/issue/JBR-3003, for updates.

It seems the only workaround is to use 2020.2.4 version. Also, you can try running the IDE with different JBRs - https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under.

0
Avatar
Permanently deleted user

I have phpstorm 2020.3.3 on ubuntu 20.04.  It is running super slow, and now on opening a project is is apparently frozen on Loading xxx project, 'Reopening files'.  In fact, I want to get logs from the IDE, but it is stuck.  I had been having the freezing problem that many people had reported, and had hoped that upgrading to this new version would improve that.  Unfortunately, the problem seems worse.  I love this IDE, and hate the idea of learning a new one, but I cannot keep any workflow going with this problem.  I can't click the X to close the app, I have to open a terminal and run ps to get the process id and kill -9 it.

Unfortunately, Jetbrains, I think you may have taken a great product and tried to add too many features, and now you have ruined it.

I've got a license to all products, and as much as I love them, I may have to cancel my subscription and get something else..

1

@... Please try RC version of PhpStorm: https://www.jetbrains.com/phpstorm/nextversion/

If you still experience this issue here, please create new YouTrack request with logs folder attached 

1
Avatar
Permanently deleted user

Konstantin,

Thanks for the reply.  I downloaded the RC version of 2021.3, and it does seem to be an improvement over the locking and speed,  but the indexing is not working, and it cannot find base classes for anything (eg. base classes that exist in laravel vendor packages), so no autocomplete of class methods and properties, etc.  

I will wait until it is done, thanks.

DJ

1

Please sign in to leave a comment.