java.lang.OutOfMemoryError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Russell Gallop,
  • 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.
    via by Russell Gallop,
  • pipeline 2 : smil not found | DAISY Consortium
    via by Unknown author,
  • GitHub comment 1017#270607159
    via GitHub by vitalidze
    ,
    • 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)

    Users with the same issue

    Andreas HäberAndreas Häber
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    linxiaolonglinxiaolong
    2 times, last one,
    tyson925tyson925
    4 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    7 more bugmates