PHPStorm 2021.2 stupidly slow and constantly indexing files (actually, incrementally worse ever since 2020.2^ onwards)

Hello,

I have found a ticket that has since been closed, somebody complaining about 2020.3 being slow:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360010117759-PHPStorm-2020-3-very-slow

This is exactly my same issue and this has NOT been resolved, in fact it just became worse with each version apparently. Ever since 2020.2, every time I open up the software (on Debian by the way), it takes a lot of time.

1. On 2020.2 it would index every few weeks / months or so. Which is very acceptable.

2. On 2020.3, it was the first version (in my experience) where it started indexing every time I opened up the sofware, taking 1m-2m or so on my various projects.
I used to snap revert my package because of it, but snap package manager cannot be configured to NOT update packages (what a stupidly annoying decision but this is another story), so every few days I would see my PHSTtorm back up to 2020.3.
So, I just caved in because of snap pm, and just let my PHPStorm software get updated quarterly, because I deemed that should be the case, anyway, ultimately.

3. FINALLY, on 2021.2.2, I am as of now at 2021.2.2 and the indexing has become SO SLOW and problematic that it now takes 5m EACH TIME I open up the software.

My system is by no means slow either, this should be clear.
My configuration does not even matter, because the simple fact of the matter is this:
- 2020.2 was fast;
- 2020.3 started indexing every time, it was... somewhat acceptable;
- and by 2021.2 however, indexing is extremely slow and CONSTANT, nigh on impossible to work with.

Have to switch project? Wait 5minutes.
Have to free up resources for something else? Wait 5minutes reopening it.
Have to work with 2 (or god forbid, 3 or 4 microservices) at once? Wait 5m, 5m, 5m.
Have to restart system?
Well, it's at a point where I dread doing either, now it's at the point where it's in the back of my head: "&*^&, I have to restart PHPStorm".

Willing to bet this:
99% of your users would rather choose a reliable, fast, software in place of one that has 500 extra bells and whistles since 2020.2 onwards, making it nigh on impossible to work with.

The bells and whistles (let's look at one example: remote coding, CodeTogether or CodeWithMe or whatever you call it) is realistically used by a small % of users and can be worked without anyway, we had perfectly fine solutions and workarounds.

But making it THIS slow in favour of adding such bells and whistles ?
IT AFFECTS 100% OF THE USERS.

What going on, Jetbrains? Please make PHPStorm reliable like 2020.2 was.

I am left with either the option to do a standalone installation of 2020.2 (not snap !), or move to Visual Studio or something

10 comments
Comment actions Permalink

Also I can see that it's indexing the excluded "myproject/vendor/*" dir every time it starts up.


And then it does another run:

I tried to invalidate caches and restart (restart multiple times *after* the cache invalidation) and it still does this. 
I tried excluding the dir, cancelling exclusion, excluding again.

It still indexes for ~5m Every. Single. Time. it starts up. 

Come on... 

2
Comment actions Permalink

> IT AFFECTS 100% OF THE USERS.

And here I am sitting with perfectly responsive, snappy IDE. I guess that makes that percentage a bit lower...

Jokes aside: let's check what's really going on. Could you please run Help > Collect Logs and Diagnostic Data and share the resulting archive somehow? 

You can upload it at https://uploads.jetbrains.com/ or send it us directly over Help | Contact Support.

-1
Comment actions Permalink

Thanks for replying.

You joke and I made a statement that is perhaps too absolute, I agree. 
Fact still remains: bells and whistles for a minority of users affects the *vast majority* of users who don't need it. There.

Also, not sure that you are in the best position to attest JB product snappiness - a JB employee (basing this on the "JB" logo in your picture).
But especially not when you can find time and time again people on various forums saying how JB / IntelliJ "are great, but if only they fixed their products speed". Let's not quite kid ourselves into ignorance here.

Will look into providing logs one of these following days.

2
Comment actions Permalink

Thanks for the reply. We use our own products daily for several years: PhpStorm, IntelliJ IDEA. We commit code, inspect others projects, test environments integrations: we do all kind of stuff so we know when something is slower than usual and when not.

I personally don't think that the latest IDE version slower than 2020.3. There are a couple of issues that could cause this impression like https://youtrack.jetbrains.com/issue/WI-57899 or https://youtrack.jetbrains.com/issue/IDEA-273398 so let's check the logs first.

0
Comment actions Permalink

Hi everyone,

I am suffering exactly the same issue.

Please, let me know if you need some information

1
Comment actions Permalink

Please describe what exactly is slow. Any information is appreciated.

0
Comment actions Permalink

Where can I upload the logs? I'd rather not put them here publicly.
But, the short version is this:

scanning project 13.2s
indexing project 203.5s
indexing project 0.37s
indexing project 26.76s
(One question would be: Why is it indexing 3 times?)

Total: 243.83s or 4.06 minutes

Also seeing quite a few logs saying "sluggish" AND using all 4 threads of my i7 gen 8, taking CPU to 60-70%.
I can't tell from the logs whether the "/vendor" dir was excluded from scanning and indexing - but the progress bar visible during the index tells me the directory wasn't - even though I've excluded it, restarted, reincluded, reexcluded, restarted, as I was saying in my previous message. Actually, even visible in the photos I previously attached, the ones showing the progress bar, both photos show PHPStorm is working on indexing "myproject/vendor/*'.

0
Comment actions Permalink

You can upload the logs at https://uploads.jetbrains.com/ or send them it us directly over Help | Contact Support.

0
Comment actions Permalink

My upload was successful. Upload id: 2021_09_23_Uh8c5QXcCHqpLTc5

Two things: 
1. We've been discussing indexing / excluding "/vendor"
2. We've been discussing general sluggishness of PHPStorm on startup. 

While point 1 needs to be clarified, point 2 is the much more important one, let's not forget that.

Thanks.

0
Comment actions Permalink

Could you please re-upload the logs archive instead? It contains indexing performance metrics as well. You've uploaded a log file for a single IDE startup, which might not be sufficient to analyze the whole picture.

Based on the log I can tell:

1) try to download & install the IDE using our standalone installer: https://www.jetbrains.com/phpstorm/download/. I can see there's ~15 seconds pause/delay on an IDE startup. These delays could happen when IDE fails to access some of the OS libraries, this could happen when IDE is installed using 3rd party app managers like snap. You can keep both IDE installations for a test.

2) there was a re-indexing event triggered by an incorrect IDE shutdown. Was IDE shut down forcibly? Or did you by any chance initiated OS shutdown/reboot while IDE was running? This is a typical reason for a complete project re-indexing. Of course, IDE would feel sluggish when it's doing a full reindexing. So please check if this happens if you gracefully exit IDE. Or check if this happens on a simple IDE restart.

0

Please sign in to leave a comment.