Taint analysis for js takes long time

Hi team! hope you are doing well!

We faced an issue with taint analysis for js after updating SonarQube.
We updated our SonarQube server version 9.7 that was deployed on ec2 server from the sources to the latest 2025.2.0.105476 that was deployed via helm in k8s.

For the 1st frontend project (React + TypeScript) it takes super long time. Before the update scan took up to max 2minutes.

[...]
12:28:24.387 INFO  Configured Node.js --max-old-space-size=4192.
12:28:24.388 INFO  Using embedded Node.js runtime.
12:28:24.389 INFO  Using Node.js executable: '/opt/sonar-scanner/.sonar/js/node-runtime/node'.
12:28:27.051 INFO  Memory configuration: OS (7941 MB), Node.js (4240 MB).
12:28:29.629 INFO  Found 1 tsconfig.json file(s): [/usr/src/tsconfig.json]
12:28:29.633 INFO  Creating TypeScript program
12:28:29.633 INFO  TypeScript configuration file /usr/src/tsconfig.json
12:28:29.633 INFO  261 source files to be analyzed
[...]
12:32:51.883 INFO  Taint analysis for js: Starting
12:32:52.656 INFO  0 / 825 UCFGs simulated, memory usage: 1554 MB
12:32:57.102 INFO  11 / 825 UCFGs simulated, memory usage: 1266 MB
12:33:01.702 INFO  11 / 825 UCFGs simulated, memory usage: 1781 MB
12:33:06.276 INFO  11 / 825 UCFGs simulated, memory usage: 1334 MB
12:33:10.129 INFO  12 / 825 UCFGs simulated, memory usage: 1264 MB
12:33:11.960 INFO  12 / 825 UCFGs simulated, memory usage: 1230 MB
12:33:13.881 INFO  12 / 825 UCFGs simulated, memory usage: 1401 MB
12:33:17.685 INFO  12 / 825 UCFGs simulated, memory usage: 1281 MB
12:33:21.229 INFO  12 / 825 UCFGs simulated, memory usage: 1666 MB
12:33:24.898 INFO  12 / 825 UCFGs simulated, memory usage: 1378 MB
12:33:28.660 INFO  12 / 825 UCFGs simulated, memory usage: 1237 MB
12:33:32.273 INFO  12 / 825 UCFGs simulated, memory usage: 1760 MB
12:33:35.996 INFO  12 / 825 UCFGs simulated, memory usage: 1502 MB
12:33:39.695 INFO  12 / 825 UCFGs simulated, memory usage: 1439 MB
12:33:43.234 INFO  12 / 825 UCFGs simulated, memory usage: 1222 MB
12:33:46.686 INFO  12 / 825 UCFGs simulated, memory usage: 1539 MB
12:33:50.124 INFO  12 / 825 UCFGs simulated, memory usage: 1219 MB
12:33:53.814 INFO  12 / 825 UCFGs simulated, memory usage: 1556 MB
12:33:58.110 INFO  12 / 825 UCFGs simulated, memory usage: 1287 MB
12:34:01.800 INFO  12 / 825 UCFGs simulated, memory usage: 1569 MB
12:34:05.574 INFO  12 / 825 UCFGs simulated, memory usage: 1235 MB
12:34:09.455 INFO  12 / 825 UCFGs simulated, memory usage: 1771 MB
12:34:13.029 INFO  12 / 825 UCFGs simulated, memory usage: 1326 MB
12:34:16.776 INFO  12 / 825 UCFGs simulated, memory usage: 1656 MB
12:34:21.027 INFO  12 / 825 UCFGs simulated, memory usage: 1306 MB
12:34:25.520 INFO  12 / 825 UCFGs simulated, memory usage: 1704 MB
12:34:29.015 INFO  12 / 825 UCFGs simulated, memory usage: 1376 MB
12:34:32.545 INFO  12 / 825 UCFGs simulated, memory usage: 1616 MB
12:34:36.070 INFO  12 / 825 UCFGs simulated, memory usage: 1262 MB
12:34:39.355 INFO  12 / 825 UCFGs simulated, memory usage: 1582 MB
12:34:42.614 INFO  12 / 825 UCFGs simulated, memory usage: 1240 MB
12:34:46.089 INFO  12 / 825 UCFGs simulated, memory usage: 1649 MB
12:34:49.658 INFO  12 / 825 UCFGs simulated, memory usage: 1360 MB
12:34:54.281 INFO  12 / 825 UCFGs simulated, memory usage: 1666 MB
12:34:59.371 INFO  13 / 825 UCFGs simulated, memory usage: 1522 MB
12:35:04.067 INFO  13 / 825 UCFGs simulated, memory usage: 1408 MB
12:35:08.584 INFO  14 / 825 UCFGs simulated, memory usage: 1683 MB
12:35:12.355 INFO  14 / 825 UCFGs simulated, memory usage: 1260 MB
12:35:16.719 INFO  14 / 825 UCFGs simulated, memory usage: 1611 MB
12:35:19.532 INFO  15 / 825 UCFGs simulated, memory usage: 1327 MB
12:35:22.805 INFO  15 / 825 UCFGs simulated, memory usage: 1280 MB
12:35:27.925 INFO  15 / 825 UCFGs simulated, memory usage: 1203 MB
12:35:32.907 INFO  16 / 825 UCFGs simulated, memory usage: 1301 MB
12:35:36.161 INFO  16 / 825 UCFGs simulated, memory usage: 1403 MB
12:35:41.188 INFO  16 / 825 UCFGs simulated, memory usage: 1433 MB
12:35:46.161 INFO  16 / 825 UCFGs simulated, memory usage: 1547 MB
12:35:51.326 INFO  16 / 825 UCFGs simulated, memory usage: 1459 MB
12:35:56.116 INFO  16 / 825 UCFGs simulated, memory usage: 1266 MB
12:36:01.172 INFO  16 / 825 UCFGs simulated, memory usage: 1680 MB
12:36:06.601 INFO  16 / 825 UCFGs simulated, memory usage: 1352 MB
12:36:11.400 INFO  16 / 825 UCFGs simulated, memory usage: 1567 MB
12:36:16.217 INFO  16 / 825 UCFGs simulated, memory usage: 1537 MB
12:36:20.199 INFO  17 / 825 UCFGs simulated, memory usage: 1218 MB
12:36:25.638 INFO  17 / 825 UCFGs simulated, memory usage: 1464 MB
12:36:35.265 INFO  17 / 825 UCFGs simulated, memory usage: 1283 MB
12:36:43.550 INFO  17 / 825 UCFGs simulated, memory usage: 1344 MB
12:36:51.668 INFO  17 / 825 UCFGs simulated, memory usage: 1634 MB
12:36:58.057 INFO  17 / 825 UCFGs simulated, memory usage: 1158 MB
12:37:01.232 INFO  18 / 825 UCFGs simulated, memory usage: 1275 MB
12:37:05.794 INFO  18 / 825 UCFGs simulated, memory usage: 1502 MB
12:37:08.961 INFO  19 / 825 UCFGs simulated, memory usage: 1662 MB
12:37:12.934 INFO  19 / 825 UCFGs simulated, memory usage: 1239 MB
12:37:17.761 INFO  20 / 825 UCFGs simulated, memory usage: 1704 MB
12:37:21.979 INFO  20 / 825 UCFGs simulated, memory usage: 1332 MB
12:37:27.710 INFO  20 / 825 UCFGs simulated, memory usage: 1418 MB
12:37:36.433 INFO  20 / 825 UCFGs simulated, memory usage: 1361 MB
12:37:48.634 INFO  20 / 825 UCFGs simulated, memory usage: 1480 MB
12:38:03.255 INFO  20 / 825 UCFGs simulated, memory usage: 1528 MB
12:38:17.386 INFO  20 / 825 UCFGs simulated, memory usage: 1219 MB
12:38:35.224 INFO  20 / 825 UCFGs simulated, memory usage: 1214 MB
12:38:56.205 INFO  20 / 825 UCFGs simulated, memory usage: 1740 MB
12:39:18.794 INFO  20 / 825 UCFGs simulated, memory usage: 1655 MB
12:39:50.560 INFO  20 / 825 UCFGs simulated, memory usage: 1750 MB
12:40:43.243 INFO  20 / 825 UCFGs simulated, memory usage: 1786 MB
12:41:48.544 INFO  20 / 825 UCFGs simulated, memory usage: 1940 MB
12:42:59.685 INFO  20 / 825 UCFGs simulated, memory usage: 1687 MB
[...]

We have 2nd frontend project (React + TypeScript) and last scan took up 1.5min.

[...]
13:07:23.531 INFO  Memory configuration: OS (7941 MB), Node.js (4240 MB).
13:07:25.273 INFO  Found 1 tsconfig.json file(s): [/usr/src/tsconfig.json]
13:07:25.274 INFO  Creating TypeScript program
13:07:25.279 INFO  TypeScript configuration file /usr/src/tsconfig.json
13:07:25.279 INFO  298 source files to be analyzed
[...]
13:08:11.004 INFO  Taint analysis for js: Starting
13:08:11.685 INFO  0 / 1840 UCFGs simulated, memory usage: 125 MB
13:08:12.398 INFO  161 / 1840 UCFGs simulated, memory usage: 280 MB
13:08:12.806 INFO  316 / 1840 UCFGs simulated, memory usage: 447 MB
13:08:12.807 INFO  Taint analysis for js: Time spent was 00:00:01.801
[...]

Not sure whats wrong with scanning of the 1st project… Projects structure is almost identical, 1st has 7k LOC, 2nd 40k LOC.

Best regards,
Danila