gpt4 book ai didi

java - SonarQube java.lang.OutOfMemoryError : GC overhead limit exceeded 错误

转载 作者:搜寻专家 更新时间:2023-11-01 03:18:31 28 4
gpt4 key购买 nike

我在对我的项目执行 Sonar 分析时遇到 OutOfMemoryException。 Jenkins 作业显示分析报告已成功生成,但在 SonarQube 的后台任务期间,它失败并出现以下异常。

2016.08.24 10:55:52 INFO  [o.s.s.c.s.ComputationStepExecutor] Compute comment measures | time=14ms
2016.08.24 10:56:01 INFO [o.s.s.c.s.ComputationStepExecutor] Copy custom measures | time=9075ms
2016.08.24 10:56:02 INFO [o.s.s.c.s.ComputationStepExecutor] Compute duplication measures | time=150ms
2016.08.24 10:56:34 ERROR [o.s.s.c.c.ComputeEngineContainerImpl] Cleanup of container failed
java.lang.OutOfMemoryError: GC overhead limit exceeded
2016.08.24 10:56:34 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Failed to execute task AVa6eX7gdswG1hqK_Vvc
java.lang.OutOfMemoryError: Java heap space
2016.08.24 10:56:34 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=iServe | id=AVa6eX7gdswG1hqK_Vvc | time=53577ms

最佳答案

我使用 docker-compose,这个选项非常适合我。

version: "2"

services:
sonarqube:
image: sonarqube
command: -Dsonar.ce.javaOpts=-Xmx4096m

您可以自定义内存大小。

关于java - SonarQube java.lang.OutOfMemoryError : GC overhead limit exceeded 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39114020/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com