Help Center/ CodeArts Check/ FAQs/ General Issues/ Why Am I Seeing Error CC.00040010.400?/ Error Log: Java heap space [ErrorMessage] className is java.util.Arrays, methodName is copyOf, lineNum is ***
Updated on 2026-08-10 GMT+08:00

Error Log: Java heap space [ErrorMessage] className is java.util.Arrays, methodName is copyOf, lineNum is ***

Symptom

A task checked by the sonarqube engine fails. The log contains "Java heap space [ErrorMessage] className is java.util.Arrays, methodName is copyOf, lineNum is ***", and indicates a Java heap memory failure.

Cause Analysis

Too many issues are detected, and the executor memory is limited. As a result, the heap memory overflows during issue report conversion.

Solution

  • Reduce the rules used in the rule set until the error does not occur. For details, see Configuring a Custom Rule Set.
  • Use an executor with larger specifications to scan the code again.