Scanning a .NET project (projects), results in the JavaScript analysis running indefinitely . Node.exe consumes 100% of a single CPU (25% of total available CPU), and times out after 8 hours. It would run forever, AFAICT, if we didn’t time it out. There are only a few thousand JavaScript files to be analyzed.
The last log item shown, prior to the node.exe behaviour:
INFO: Sensor JavaScript analysis [javascript]
The node version, FWIW, is 20.9.0.
Any suggestions on things to try would be appreciated.
Certainly. This is the output for the project that fails. Several projects within the overall solution are analyzed prior to this one, without incident.
2024-06-03T12:42:14.0455486Z 08:42:14.026 INFO: ------------- Run sensors on module project-name-redacted
2024-06-03T12:42:14.0800989Z 08:42:14.073 DEBUG: 'JavaSensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0810017Z 08:42:14.073 DEBUG: 'Import external issues report' skipped because one of the required properties is missing
2024-06-03T12:42:14.0814045Z 08:42:14.073 DEBUG: 'Import external issues report from SARIF file.' skipped because one of the required properties is missing
2024-06-03T12:42:14.0814370Z 08:42:14.073 DEBUG: 'Python Sensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0814953Z 08:42:14.073 DEBUG: 'Cobertura Sensor for Python coverage' skipped because there is no related file in current project
2024-06-03T12:42:14.0816300Z 08:42:14.073 DEBUG: 'PythonXUnitSensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0816649Z 08:42:14.073 DEBUG: 'Import of Pylint issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0817364Z 08:42:14.073 DEBUG: 'Import of Bandit issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0817947Z 08:42:14.073 DEBUG: 'Import of Flake8 issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0818491Z 08:42:14.073 DEBUG: 'Code Quality and Security for Go' skipped because there is no related file in current project
2024-06-03T12:42:14.0819043Z 08:42:14.073 DEBUG: 'Go Unit Test Report' skipped because there is no related file in current project
2024-06-03T12:42:14.0819586Z 08:42:14.073 DEBUG: 'Go Cover sensor for Go coverage' skipped because one of the required properties is missing
2024-06-03T12:42:14.0820158Z 08:42:14.073 DEBUG: 'Import of go vet issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0820473Z 08:42:14.073 DEBUG: 'Import of Golint issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0820752Z 08:42:14.073 DEBUG: 'Import of GoMetaLinter issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0821380Z 08:42:14.073 DEBUG: 'Import of GolangCI-Lint issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0821683Z 08:42:14.073 DEBUG: 'Kotlin Sensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0821939Z 08:42:14.073 DEBUG: 'KotlinSurefireSensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0822211Z 08:42:14.073 DEBUG: 'Import of detekt issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0822484Z 08:42:14.073 DEBUG: 'Import of Android Lint issues' skipped because one of the required properties is missing
2024-06-03T12:42:14.0822750Z 08:42:14.073 DEBUG: 'Import of ktlint issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0823017Z 08:42:14.073 DEBUG: 'IaC Terraform Sensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0823277Z 08:42:14.073 DEBUG: 'IaC CloudFormation Sensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0823550Z 08:42:14.073 DEBUG: 'IaC Kubernetes Sensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0823824Z 08:42:14.073 DEBUG: 'JavaScript inside YAML analysis' skipped because there is no related file in current project
2024-06-03T12:42:14.0824100Z 08:42:14.073 DEBUG: 'JavaScript/TypeScript Coverage' skipped because one of the required properties is missing
2024-06-03T12:42:14.0824505Z 08:42:14.073 DEBUG: 'Import of ESLint issues' skipped because one of the required properties is missing
2024-06-03T12:42:14.0824773Z 08:42:14.073 DEBUG: 'Import of TSLint issues' skipped because one of the required properties is missing
2024-06-03T12:42:14.0825028Z 08:42:14.073 DEBUG: 'CSS Metrics' skipped because there is no related file in current project
2024-06-03T12:42:14.0825284Z 08:42:14.073 DEBUG: 'Import of stylelint issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0825551Z 08:42:14.073 DEBUG: 'Ruby Sensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0825815Z 08:42:14.073 DEBUG: 'Import of RuboCop issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0826086Z 08:42:14.073 DEBUG: 'SimpleCov Sensor for Ruby coverage' skipped because there is no related file in current project
2024-06-03T12:42:14.0826360Z 08:42:14.073 DEBUG: 'Scala Sensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0826627Z 08:42:14.073 DEBUG: 'Scoverage sensor for Scala coverage' skipped because there is no related file in current project
2024-06-03T12:42:14.0826911Z 08:42:14.073 DEBUG: 'Import of Scalastyle issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0827183Z 08:42:14.073 DEBUG: 'Import of Scapegoat issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0827454Z 08:42:14.073 DEBUG: 'Import of Checkstyle issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0827727Z 08:42:14.073 DEBUG: 'Import of PMD issues' skipped because one of the required properties is missing
2024-06-03T12:42:14.0827992Z 08:42:14.073 DEBUG: 'Import of SpotBugs issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0828254Z 08:42:14.073 DEBUG: 'SurefireSensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0828520Z 08:42:14.073 DEBUG: 'Removed properties sensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0828768Z 08:42:14.073 DEBUG: 'Flex' skipped because there is no related file in current project
2024-06-03T12:42:14.0829016Z 08:42:14.073 DEBUG: 'Flex Cobertura' skipped because there is no related file in current project
2024-06-03T12:42:14.0829262Z 08:42:14.073 DEBUG: 'XML Sensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0829513Z 08:42:14.073 DEBUG: 'PHP sensor' skipped because there is no related file in current project
2024-06-03T12:42:14.0830765Z 08:42:14.073 DEBUG: 'Analyzer for "php.ini" files' skipped because there is no related file in current project
2024-06-03T12:42:14.0831033Z 08:42:14.073 DEBUG: 'Import of PHPStan issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0831302Z 08:42:14.073 DEBUG: 'Import of Psalm issues' skipped because there is no related file in current project
2024-06-03T12:42:14.0831725Z 08:42:14.073 DEBUG: Sensors : JaCoCo XML Report Importer -> JavaScript analysis -> TypeScript analysis -> CSS Rules -> C# Project Type Information -> C# Analysis Log -> C# Properties -> HTML -> TextAndSecretsSensor -> VB.NET Project Type Information -> VB.NET Analysis Log -> VB.NET Properties -> IaC Docker Sensor
2024-06-03T12:42:14.0832127Z 08:42:14.073 INFO: Sensor JaCoCo XML Report Importer [jacoco]
2024-06-03T12:42:14.0832469Z 08:42:14.073 INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2024-06-03T12:42:14.0832830Z 08:42:14.073 INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2024-06-03T12:42:14.0833085Z 08:42:14.073 INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=0ms
2024-06-03T12:42:14.0833292Z 08:42:14.073 INFO: Sensor JavaScript analysis [javascript]
I have additional memory allocated to the javascript scanning via: sonar.javascript.node.maxspace=8192
It is Windows 10 LTSC 2019
I’m open to trying a new node version, definitely. It’s at 20.0.19 vs. 20.0.24 which is current (about 8 months of changes). I could probably install the 22 non LTS branch somewhere and point SonarQube to it if necessary. I will start with the LTS update.
The NodeJS version change did not make any difference. I had to reduce the scope of the source solution we were analyzing.
Even after reducing the scope, the problem remained. However, the actual SonarQube analysis finishes despite the node.exe running at 100% and never releasing back to the O/S. So I set a reasonably long timeout, issue a kill on the node.exe at that time, and I have good output from SonarQube.
It’s not ideal but it works until the underlying issue, whatever that may be, is resolved.