hudson 中的 java OutOfMemoryError

发布于 2024-10-15 18:49:24 字数 2087 浏览 4 评论 0原文

我在 hudson 中运行 pmd、findbugs 时收到以下错误。

FATAL: Java heap space  
java.lang.OutOfMemoryError: Java heap space  
    at java.util.HashMap.(Unknown Source)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.initialize(AnnotationContainer.java:163)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.(AnnotationContainer.java:119)  
    at hudson.plugins.analysis.util.model.WorkspaceFile.(WorkspaceFile.java:25)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.addFile(AnnotationContainer.java:303)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.updateMappings(AnnotationContainer.java:212)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.addAnnotation(AnnotationContainer.java:317)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.addAnnotations(AnnotationContainer.java:327)  
    at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:266)  
    at hudson.plugins.analysis.core.BuildResult.(BuildResult.java:206)  
    at hudson.plugins.findbugs.FindBugsResult.(FindBugsResult.java:40)  
    at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:132)  
    at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:280)  
    at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)  
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:603)  
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:582)  
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:560)  
    at hudson.model.Build$RunnerImpl.post2(Build.java:156)  
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:529)  
    at hudson.model.Run.run(Run.java:1349)  
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)  
    at hudson.model.ResourceController.execute(ResourceController.java:88)  
    at hudson.model.Executor.run(Executor.java:139)  

我已经为 pmd 指定了 jvmargs,findbugs 并将 ant_opts 设置为 1024M。

Im getting the following error while running pmd, findbugs in hudson.

FATAL: Java heap space  
java.lang.OutOfMemoryError: Java heap space  
    at java.util.HashMap.(Unknown Source)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.initialize(AnnotationContainer.java:163)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.(AnnotationContainer.java:119)  
    at hudson.plugins.analysis.util.model.WorkspaceFile.(WorkspaceFile.java:25)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.addFile(AnnotationContainer.java:303)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.updateMappings(AnnotationContainer.java:212)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.addAnnotation(AnnotationContainer.java:317)  
    at hudson.plugins.analysis.util.model.AnnotationContainer.addAnnotations(AnnotationContainer.java:327)  
    at hudson.plugins.analysis.core.BuildResult.initialize(BuildResult.java:266)  
    at hudson.plugins.analysis.core.BuildResult.(BuildResult.java:206)  
    at hudson.plugins.findbugs.FindBugsResult.(FindBugsResult.java:40)  
    at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:132)  
    at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:280)  
    at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)  
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:603)  
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:582)  
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:560)  
    at hudson.model.Build$RunnerImpl.post2(Build.java:156)  
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:529)  
    at hudson.model.Run.run(Run.java:1349)  
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)  
    at hudson.model.ResourceController.execute(ResourceController.java:88)  
    at hudson.model.Executor.run(Executor.java:139)  

I have specified jvmargs for pmd, findbugs and ant_opts is set to 1024M.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

仅此而已 2024-10-22 18:49:24

如果您在 Windows 中,则必须编辑 hudson.xml 文件以包含 java 参数
-Xmx1024m,但是如果您在 *nix 环境中,则必须运行命令

export JAVA_OPTS=-Xmx1024m

或更合理的内存大小。

If you are in windows you must edit the hudson.xml file to include the java argument
-Xmx1024m, however if you're on a *nix environment you must run the command

export JAVA_OPTS=-Xmx1024m

Or a more reasonable size for memory.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文