IntelliJ SonarLint 6.4.1.42145 JavaScript heap out of memory

Hi,

the newest version of SonarLint is taking a really big portion of heap and probably running into:

<— Last few GCs —>

[12412:0000024E93C077E0] 3731123 ms: Scavenge (reduce) 8168.0 (8183.0) → 8167.3 (8184.0) MB, 8.6 / 0.0 ms (average mu = 0.880, current mu = 0.498) allocation failure
[12412:0000024E93C077E0] 3736988 ms: Mark-sweep (reduce) 8195.8 (8210.7) → 8194.3 (8210.7) MB, 5732.9 / 0.0 ms (average mu = 0.695, current mu = 0.106) allocation failure scavenge might not succeed

with NODE_OPTIONS=–max-old-space-size=8196

It takes really long on multiple instances of IntelliJs and to check pre-commit and finally running into JavaScript heap out of memory.

Environment:

  • Java: JetBrains s.r.o. 11.0.13
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2021.3.1
  • SonarLint: 6.4.1.42145

Hello @kreake,

Thank you for this report. Can you share the reproducer project for this problem? Or do you get this behavior on every project?