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.

  • The build was started. Clearcase plugin started generating changes by label. After reaching 317MB of log, it failed with the following exception: {noformat} 20:26:36 FATAL: allocLargeObjectOrArray: [C, size 2176 20:26:36 java.lang.OutOfMemoryError: allocLargeObjectOrArray: [C, size 2176 20:26:36 at java.util.Arrays.copyOf(Arrays.java:2882) 20:26:36 at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) 20:26:36 at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) 20:26:36 at java.lang.StringBuilder.append(StringBuilder.java:119) 20:26:36 at hudson.plugins.clearcase.history.HistoryEntry.appendComment(HistoryEntry.java:55) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.tryToAttachLineToPreviousEntry(AbstractHistoryAction.java:174) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.parseLsHistory(AbstractHistoryAction.java:148) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.retrieveHistoryEntries(AbstractHistoryAction.java:220) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.runLsHistory(AbstractHistoryAction.java:191) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.runAndFilterLsHistory(AbstractHistoryAction.java:121) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.getChanges(AbstractHistoryAction.java:90) 20:26:36 at hudson.plugins.clearcase.AbstractClearCaseScm.saveChangeLog(AbstractClearCaseScm.java:553) 20:26:36 at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:528) 20:26:36 at hudson.model.AbstractProject.checkout(AbstractProject.java:1308) 20:26:36 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:679) 20:26:36 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 20:26:36 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584) 20:26:36 at hudson.model.Run.execute(Run.java:1516) 20:26:36 at hudson.matrix.MatrixRun.run(MatrixRun.java:146) 20:26:36 at hudson.model.ResourceController.execute(ResourceController.java:88) 20:26:36 at hudson.model.Executor.run(Executor.java:236) {noformat}
    via by Krzysztof Malinowski,
  • The build was started. Clearcase plugin started generating changes by label. After reaching 317MB of log, it failed with the following exception: {noformat} 20:26:36 FATAL: allocLargeObjectOrArray: [C, size 2176 20:26:36 java.lang.OutOfMemoryError: allocLargeObjectOrArray: [C, size 2176 20:26:36 at java.util.Arrays.copyOf(Arrays.java:2882) 20:26:36 at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) 20:26:36 at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) 20:26:36 at java.lang.StringBuilder.append(StringBuilder.java:119) 20:26:36 at hudson.plugins.clearcase.history.HistoryEntry.appendComment(HistoryEntry.java:55) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.tryToAttachLineToPreviousEntry(AbstractHistoryAction.java:174) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.parseLsHistory(AbstractHistoryAction.java:148) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.retrieveHistoryEntries(AbstractHistoryAction.java:220) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.runLsHistory(AbstractHistoryAction.java:191) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.runAndFilterLsHistory(AbstractHistoryAction.java:121) 20:26:36 at hudson.plugins.clearcase.history.AbstractHistoryAction.getChanges(AbstractHistoryAction.java:90) 20:26:36 at hudson.plugins.clearcase.AbstractClearCaseScm.saveChangeLog(AbstractClearCaseScm.java:553) 20:26:36 at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:528) 20:26:36 at hudson.model.AbstractProject.checkout(AbstractProject.java:1308) 20:26:36 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:679) 20:26:36 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 20:26:36 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584) 20:26:36 at hudson.model.Run.execute(Run.java:1516) 20:26:36 at hudson.matrix.MatrixRun.run(MatrixRun.java:146) 20:26:36 at hudson.model.ResourceController.execute(ResourceController.java:88) 20:26:36 at hudson.model.Executor.run(Executor.java:236) {noformat}
    via by Krzysztof Malinowski,
  • Buffer is to small
    via Stack Overflow by angus
    ,
    • java.lang.OutOfMemoryError: allocLargeObjectOrArray: [C, size 2176 at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuilder.append(StringBuilder.java:119) at hudson.plugins.clearcase.history.HistoryEntry.appendComment(HistoryEntry.java:55) at hudson.plugins.clearcase.history.AbstractHistoryAction.tryToAttachLineToPreviousEntry(AbstractHistoryAction.java:174) at hudson.plugins.clearcase.history.AbstractHistoryAction.parseLsHistory(AbstractHistoryAction.java:148) at hudson.plugins.clearcase.history.AbstractHistoryAction.retrieveHistoryEntries(AbstractHistoryAction.java:220) at hudson.plugins.clearcase.history.AbstractHistoryAction.runLsHistory(AbstractHistoryAction.java:191) at hudson.plugins.clearcase.history.AbstractHistoryAction.runAndFilterLsHistory(AbstractHistoryAction.java:121) at hudson.plugins.clearcase.history.AbstractHistoryAction.getChanges(AbstractHistoryAction.java:90) at hudson.plugins.clearcase.AbstractClearCaseScm.saveChangeLog(AbstractClearCaseScm.java:553) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:528) at hudson.model.AbstractProject.checkout(AbstractProject.java:1308) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:679) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584) at hudson.model.Run.execute(Run.java:1516) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    HandemelindoHandemelindo
    1 times, last one,
    Indri YunitaIndri Yunita
    3 times, last one,
    TahirTahir
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    57 more bugmates