hudson 中的 java OutOfMemoryError
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在 Windows 中,则必须编辑 hudson.xml 文件以包含 java 参数
-Xmx1024m,但是如果您在 *nix 环境中,则必须运行命令
或更合理的内存大小。
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
Or a more reasonable size for memory.