Scanner report size issue

Hi SonarQube Community,

We are developing our own custom plugin to parse and analyze XML files (to be more specific, webMethods language files). For that, we use Maven and sonar-maven-plugin to scan files and send results to the server. We have a lot of files to parse and analyze (a few Gbs in total). On the client side, everything works just fine - maven does its job without (bigger) issues in 20 mins. But on the server side we are facing the below error

Error Details
java.lang.IllegalStateException: Decompression failed because unzipped size reached threshold: 4000000000 bytes
	at org.sonar.api.utils.ZipUtils.extractZipEntry(
	at org.sonar.api.utils.ZipUtils.unzip(
	at org.sonar.api.utils.ZipUtils.unzip(
	at org.sonar.ce.task.projectanalysis.step.ExtractReportStep.execute(
	at org.sonar.ce.task.step.ComputationStepExecutor.executeStep(
	at org.sonar.ce.task.step.ComputationStepExecutor.executeSteps(
	at org.sonar.ce.task.step.ComputationStepExecutor.execute(
	at org.sonar.ce.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(
	at org.sonar.ce.taskprocessor.CeWorkerImpl$ExecuteTask.executeTask(
	at org.sonar.ce.taskprocessor.CeWorkerImpl$
	at org.sonar.ce.taskprocessor.CeWorkerImpl.findAndProcessTask(
	at org.sonar.ce.taskprocessor.CeWorkerImpl$TrackRunningState.get(
	at java.base/java.util.concurrent.Executors$ Source)
	at java.base/ Source)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$ Source)
	at java.base/ Source)

I believe this error is related to the change introduced in the [SONAR-17183] - Jira

How can we mitigate/workaround this issue?

  • Versions we are using
    • SonarQube -
    • Plugin - org.sonarsource.scanner.maven:sonar-maven-plugin:
  • SonarQube is deployed locally as a Docker container (FROM sonarqube:9.9.0-community)

Hey there.

I think the quickest/only workaround would be to split your project into several projects by narrowing the focus so that the scanner report doesn’t exceed 4GB.

Hi Colin ,

Thanks for your (quick!) reply. And what is the suggested, proper solution?