首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >jenkines gat卡在声纳-qube分析。分析和成功,但工作坚持

jenkines gat卡在声纳-qube分析。分析和成功,但工作坚持
EN

Stack Overflow用户
提问于 2021-02-28 19:54:54
回答 1查看 103关注 0票数 0

我在Jenkins的工作中运行声纳。分析阶段成功结束,但在此之后,作业被卡住,日志中没有任何内容,但几分钟后,我从内存中取出错误,作业失败。

我的声纳属性文件:

代码语言:javascript
复制
sonar.language=javascript

# sources
sonar.sources=src
sonar.exclusions=**/node_modules/**

# tests
sonar.tests=src
sonar.test.inclusions=**/*.test.js

# tests reports
sonar.testExecutionReportPaths=reports/test-reporter.xml
sonar.javascript.lcov.reportPaths=coverage/lcov.info

sonar.verbose=true

日志:

代码语言:javascript
复制
13:31:10  13:31:10.683 INFO: Analysis report generated in 522ms, dir size=4 MB
13:31:12  13:31:12.797 INFO: Analysis report compressed in 2114ms, zip size=2 MB
13:31:12  13:31:12.797 INFO: Analysis report generated in /my_reports_loc
13:31:12  13:31:12.797 DEBUG: Upload report
13:31:12  13:31:12.955 DEBUG: POST 200 http://my-sonar/api/ce/submit?projectKeymyProjt&projectName=projectNamet | time=157ms
13:31:12  13:31:12.958 INFO: Analysis report uploaded in 161ms
13:31:12  13:31:12.959 DEBUG: Report metadata written to /my_reports_loc
13:31:12  13:31:12.959 INFO: ANALYSIS SUCCESSFUL, you can browse http://my-sonar/dashboard?id=my-project
13:31:12  13:31:12.959 INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
13:31:12  13:31:12.959 INFO: More about the report processing at http://my-sonar/api/ce/task?id=my_id
13:31:12  13:31:12.964 DEBUG: eslint-bridge server will shutdown
13:31:13  13:31:13.208 DEBUG: stylelint-bridge server will shutdown
13:31:13  13:31:13.209 INFO: Analysis total time: 42.940 s
13:31:13  13:31:13.230 INFO: ------------------------------------------------------------------------
13:31:13  13:31:13.230 INFO: EXECUTION SUCCESS
13:31:13  13:31:13.230 INFO: ------------------------------------------------------------------------
13:31:13  13:31:13.230 INFO: Total time: 44.469s
13:31:13  13:31:13.369 INFO: Final Memory: 43M/1106M
13:31:13  13:31:13.369 INFO: ------------------------------------------------------------------------
[Pipeline] }
[Pipeline] // 
[Pipeline] }
[Pipeline] // 
13:33:47 java.lang.OutOfMemoryError: GC overhead limit exceeded
Finished: FAILURE
EN

回答 1

Stack Overflow用户

发布于 2021-03-01 01:29:20

您需要增加堆大小。

关于GC开销的错误意味着Jenkins在垃圾收集中颠簸。这意味着它可能花更多的时间做垃圾收集而不是做有用的工作。这种情况通常发生在堆对于应用程序来说太小的时候。

如果您需要知道如何增加jenkins的帮助大小,此post将为您提供帮助。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66408795

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档