PD4ML v4 Forums PD4ML v3 Archived Forums (Read Only) Troubleshooting Java Out Of Memory Error

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27098

    Hi All,

    I’m getting a “Java Out Of Memory Error” when trying to convert a large html report to PDF (see log output below). Does anyone know how to resolve this problem?

    I’ve seen some posts of a similar problem where the recommendation was to upgrade to 3.95. The date of my pd4ml.jar file is Dec 10, 2015, so I think I am already on a version that is beyond 3.95. If anyone knows how to tell for sure, please let me know.

    Thanks.

    Aaron


    java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:3332)
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
    at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:421)
    at java.lang.StringBuilder.append(StringBuilder.java:136)
    at java.lang.StringBuilder.append(StringBuilder.java:131)
    at java.util.AbstractMap.toString(AbstractMap.java:534)
    at java.lang.String.valueOf(String.java:2994)
    at java.lang.StringBuffer.append(StringBuffer.java:265)
    at org.zefer.html.doc.q.toString(Unknown Source)
    at org.zefer.html.doc.cb.o00000(Unknown Source)
    at org.zefer.html.doc.q.o00000(Unknown Source)
    at org.zefer.html.doc.q.øÒ0000(Unknown Source)
    at org.zefer.html.doc.n.new(Unknown Source)
    at org.zefer.html.doc.n.o00000(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.cb.o00000(Unknown Source)
    at org.zefer.html.doc.q.o00000(Unknown Source)
    at org.zefer.html.doc.q.oô0000(Unknown Source)
    at org.zefer.html.doc.n.new(Unknown Source)
    at org.zefer.html.doc.n.o00000(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.cb.o00000(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.cb.o00000(Unknown Source)
    at org.zefer.html.doc.Document.layout(Unknown Source)
    at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    at Pd4Cmd.o00000(Unknown Source)
    at Pd4Cmd.main(Unknown Source)
    TableCellElement(td) {colspan=4, display=table-cell}

    #29927

    Have you overridden the default “tiny” JVM heap size with something like -Xmx512m ?

    #29928

    No I haven’t. Here’s my current Java memory situation:

    java -XX:+PrintFlagsFinal -version | grep -iE ‘HeapSize|PermSize|ThreadStackSize’

    ajradich@dvm-ajradich2:/usr/local/html(BOS-740)$ java -XX:+PrintFlagsFinal -version | grep -iE ‘HeapSize|PermSize|ThreadStackSize’
    intx CompilerThreadStackSize = 0 {pd product}
    uintx ErgoHeapSizeLimit = 0 {product}
    uintx HeapSizePerGCThread = 87241520 {product}
    uintx InitialHeapSize := 65011712 {product}
    uintx LargePageHeapSizeThreshold = 134217728 {product}
    uintx MaxHeapSize := 1035993088 {product}
    intx ThreadStackSize = 1024 {pd product}
    intx VMThreadStackSize = 1024 {pd product}
    java version “1.8.0_91”
    Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.