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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot