|
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
current |
Assignee:
|
Josh Kennedy
|
Components:
|
clang-scanbuild, plugin |
Created:
|
24/Sep/12 4:31 PM
|
Description:
|
I am building a large project with a lot of clang errors and get the following output:
Publishing Clang scan-build results
FATAL: Java heap space
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3209)
at java.lang.String.<init>(String.java:215)
at java.lang.StringBuffer.toString(StringBuffer.java:585)
at java.io.StringWriter.toString(StringWriter.java:193)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:360)
at hudson.FilePath.readToString(FilePath.java:1430)
at jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher.createBugInstance(ClangScanBuildPublisher.java:193)
at jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher.createBugFromClangScanBuildHtml(ClangScanBuildPublisher.java:128)
at jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher.perform(ClangScanBuildPublisher.java:104)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710)
at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685)
at hudson.model.Build$RunnerImpl.post2(Build.java:162)
at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632)
at hudson.model.Run.run(Run.java:1459)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:239)
I have 3404 clang error files, totalling about 2.4 GB. The largest is 4.7 MB. It looks from the source code like it is loading the html files into a string one by one when it does this. I have specified 4 GB of stack space and think that this should be enough!
4 GB of heap is enough for a subset of my project producing 1691 clang html files, totalling 1.2 GB. The largest of these is also 4.7 MB so I don't think that is the issue.
|
Environment:
|
Ubuntu
|
Project:
|
Jenkins
|
Labels:
|
plugins
|
Priority:
|
Major
|
Reporter:
|
Russell Gallop
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|