PhpStorm freezes while opening the first project


When I open the first project, the IDE freezes for 10 seconds or so, how can I troubleshoot this issue?

PhpStorm 2022.1
Build #PS-221.5080.224, built on April 13, 2022
Licensed to --
Subscription is active until November 26, 2022.
Runtime version: x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12

Non-Bundled Plugins:
    fr.gabrielcolson.prisma.prisma-intellij-plugin (1.2.5) (5.5.2)
    org.intellij.plugins.postcss (221.5080.154)
    ru.adelf.idea.dotenv (2022.1)
    de.espend.idea.php.annotation (8.2.0)
    mdx.js (1.0.221)
    intellij.prettierJS (221.5080.169)
    dev.blachut.svelte.lang (0.22.0)
    izhangzhihao.rainbow.brackets (6.21)
    com.mallowigi (64.0.0)
    AceJump (3.8.7)

The mac CPU is at around 20% when the IDE freezes


I found all the thread dumps (zipped below)

Thank you

Comment actions Permalink

The IDE becomes unusable, it has frozen for 70 seconds just now

I installed npm deps and as it was indexing, I started a "Find in files" search. As I types the first two characters, it completely froze

Comment actions Permalink

Do you have any build tools running like npm watch, laravel mix, etc...?
Please try excluding all folders with files dynamically generated by build tools from the project (right click a directory > Mark directory as > Excluded). Do the same with all tmp, log and cache folders. 

Looks like the freezes are happening because IDE is looking at file system changes that happened because of build tools.

Comment actions Permalink

Thank you, I will try that

It didn't happen with the previous version of 2021


Comment actions Permalink

I removed the startup task which was calling the dev build tool, I wanted to avoid any issues coming from the fs watch

It now appears to freeze whenever indexing is performed or to be precise, whenever "Scanning files to index" is displayed


My projects contain node_modules and vendor folders so this can be slow





Comment actions Permalink

Sorry, the logs archive isn't full. Could you please run Help > Collect Logs and Diagnostic Data and attach resulting archive? You can also upload it using

Comment actions Permalink

Thank you for your reply, I will send you the full logs as soon as the issue occurs again. 



Please sign in to leave a comment.