java.lang.OutOfMemoryError: Java heap space

Atlassian JIRA | Charles O'Farrell [Atlassian] | 3 years ago
  1. 0

    The following results in an OOME in Stash (please don't do this on our production instances) {code} ```result.toEither.left.foreach{ case .... }``` or ```result.swap.foreach{ case ... } // foreach is only defined on the right side of validation``` {code} Looks like if you replace {{```}} with {{`}} it works fine. We will need to fix this in Pegdown. https://github.com/sirthias/pegdown/issues/127 {noformat:title=atlassian-stash.log} 2014-05-27 11:53:40,367 ERROR [http-bio-7990-exec-60] <username> 713x69798x3 emv80b <IP.ADRESS>,127.0.0.1 "GET /rest/readme/latest/projects/~TYLER.HARTLAND/repos/magrathea/markup/README.md HTTP/1.0" c.a.p.r.c.e.j.ThrowableExceptionMapper Uncaught exception thrown by REST service: Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) ~[na:1.6.0_39] at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) ~[na:1.6.0_39] at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) ~[na:1.6.0_39] at java.lang.StringBuilder.append(StringBuilder.java:119) ~[na:1.6.0_39] at org.pegdown.Printer.print(Printer.java:42) ~[na:na] at com.atlassian.markup.parser.MarkdownParser$DataAttributeVerbatimSerializer.serialize(MarkdownParser.java:97) ~[na:na] at com.atlassian.markup.parser.MarkdownParser$ToHtmlSerializerWithLang.visit(MarkdownParser.java:76) ~[na:na] at org.pegdown.ast.VerbatimNode.accept(VerbatimNode.java:36) ~[na:na] at org.pegdown.ToHtmlSerializer.visitChildren(ToHtmlSerializer.java:365) ~[na:na] at org.pegdown.ToHtmlSerializer.visit(ToHtmlSerializer.java:91) ~[na:na] at org.pegdown.ast.RootNode.accept(RootNode.java:51) ~[na:na] at org.pegdown.ToHtmlSerializer.toHtml(ToHtmlSerializer.java:72) ~[na:na] at com.atlassian.markup.parser.MarkdownParser.markdownToHtml(MarkdownParser.java:45) ~[na:na] at com.atlassian.markup.parser.MarkdownParser.markup(MarkdownParser.java:34) ~[na:na] ... 18 frames trimmed {noformat}

    Atlassian JIRA | 3 years ago | Charles O'Farrell [Atlassian]
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    The following results in an OOME in Stash (please don't do this on our production instances) {code} ```result.toEither.left.foreach{ case .... }``` or ```result.swap.foreach{ case ... } // foreach is only defined on the right side of validation``` {code} Looks like if you replace {{```}} with {{`}} it works fine. We will need to fix this in Pegdown. https://github.com/sirthias/pegdown/issues/127 {noformat:title=atlassian-stash.log} 2014-05-27 11:53:40,367 ERROR [http-bio-7990-exec-60] <username> 713x69798x3 emv80b <IP.ADRESS>,127.0.0.1 "GET /rest/readme/latest/projects/~TYLER.HARTLAND/repos/magrathea/markup/README.md HTTP/1.0" c.a.p.r.c.e.j.ThrowableExceptionMapper Uncaught exception thrown by REST service: Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) ~[na:1.6.0_39] at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) ~[na:1.6.0_39] at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) ~[na:1.6.0_39] at java.lang.StringBuilder.append(StringBuilder.java:119) ~[na:1.6.0_39] at org.pegdown.Printer.print(Printer.java:42) ~[na:na] at com.atlassian.markup.parser.MarkdownParser$DataAttributeVerbatimSerializer.serialize(MarkdownParser.java:97) ~[na:na] at com.atlassian.markup.parser.MarkdownParser$ToHtmlSerializerWithLang.visit(MarkdownParser.java:76) ~[na:na] at org.pegdown.ast.VerbatimNode.accept(VerbatimNode.java:36) ~[na:na] at org.pegdown.ToHtmlSerializer.visitChildren(ToHtmlSerializer.java:365) ~[na:na] at org.pegdown.ToHtmlSerializer.visit(ToHtmlSerializer.java:91) ~[na:na] at org.pegdown.ast.RootNode.accept(RootNode.java:51) ~[na:na] at org.pegdown.ToHtmlSerializer.toHtml(ToHtmlSerializer.java:72) ~[na:na] at com.atlassian.markup.parser.MarkdownParser.markdownToHtml(MarkdownParser.java:45) ~[na:na] at com.atlassian.markup.parser.MarkdownParser.markup(MarkdownParser.java:34) ~[na:na] ... 18 frames trimmed {noformat}

    Atlassian JIRA | 3 years ago | Charles O'Farrell [Atlassian]
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    resume fail with OutOfMemoryError while appending to tree log

    GitHub | 3 years ago | jheled
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JarAnalyzer can run out of memory (Bugzilla #18602)

    GitHub | 4 years ago | vladak
    java.lang.OutOfMemoryError: Java heap space
  6. 0

    Increase Java heap space for language-identifier plugin-in in nutch

    Stack Overflow | 5 years ago | user200340
    java.lang.reflect.InvocationTargetException

  1. Handemelindo 2 times, last 1 month ago
  2. Tahir 2 times, last 2 months ago
  3. Tahir 2 times, last 2 months ago
  4. harshg 2 times, last 3 months ago
  5. sunils 1 times, last 5 months ago
3 more registered users
16 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Java heap space

    at java.util.Arrays.copyOf()
  2. Java RT
    StringBuilder.append
    1. java.util.Arrays.copyOf(Arrays.java:2882)[na:1.6.0_39]
    2. java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)[na:1.6.0_39]
    3. java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)[na:1.6.0_39]
    4. java.lang.StringBuilder.append(StringBuilder.java:119)[na:1.6.0_39]
    4 frames
  3. pegdown
    Printer.print
    1. org.pegdown.Printer.print(Printer.java:42)[na:na]
    1 frame
  4. com.atlassian.markup
    MarkdownParser$ToHtmlSerializerWithLang.visit
    1. com.atlassian.markup.parser.MarkdownParser$DataAttributeVerbatimSerializer.serialize(MarkdownParser.java:97)[na:na]
    2. com.atlassian.markup.parser.MarkdownParser$ToHtmlSerializerWithLang.visit(MarkdownParser.java:76)[na:na]
    2 frames
  5. pegdown
    ToHtmlSerializer.toHtml
    1. org.pegdown.ast.VerbatimNode.accept(VerbatimNode.java:36)[na:na]
    2. org.pegdown.ToHtmlSerializer.visitChildren(ToHtmlSerializer.java:365)[na:na]
    3. org.pegdown.ToHtmlSerializer.visit(ToHtmlSerializer.java:91)[na:na]
    4. org.pegdown.ast.RootNode.accept(RootNode.java:51)[na:na]
    5. org.pegdown.ToHtmlSerializer.toHtml(ToHtmlSerializer.java:72)[na:na]
    5 frames
  6. com.atlassian.markup
    MarkdownParser.markup
    1. com.atlassian.markup.parser.MarkdownParser.markdownToHtml(MarkdownParser.java:45)[na:na]
    2. com.atlassian.markup.parser.MarkdownParser.markup(MarkdownParser.java:34)[na:na]
    2 frames