We’ve been facing a persistent issue with JS taint analysis in SonarQube.
One of our repositories takes over an hour to complete the scan and even started taking 24 hours after which we reverted some of the code, while other repositories finish within 1–2 minutes.
We are running SonarQube Developer Edition v2025.4.1 via Helm on Kubernetes, and we’ve already tried the following steps:
• I have raised a community support earlier as well for the same repo which was resolved by enabling jasmin sensor and then it used to take 30-40 mins, but it again increased to 60 mins now. link
• Tried increasing heap size where scan is running to 10GB, no difference in scan time
Despite these efforts, the scan time hasn’t improved.
Need help in analyzing why it is taking 60 min now and why taint analysis time increased to 24 hours after 1 new file addition
First, can you try allocating more memory, using sonar.javascript.node.maxspace? A minimum of 4Gb is recommended, but for larger projects you may need more.
Thanks for those details. On the face of it, 179 lines doesn’t seem egregious, but I suppose each of those lines is … heavy.
BTW, I’ve since learned that while having a tsconfig.json can make the regular JS analysis more efficient, it has no impact on the taint analysis pass.
Anyway, this is flagged for the experts. Hopefully they’ll be along soon.