java.lang.OutOfMemoryError: Java heap space

Oracle Community | seagate-746906 | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Glassfish kills business

    Oracle Community | 6 years ago | seagate-746906
    java.lang.OutOfMemoryError: Java heap space

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at org.glassfish.grizzly.memory.HeapMemoryManager.reallocatePoolBuffer()
    2. Grizzly
      HeapMemoryManager.allocate
      1. org.glassfish.grizzly.memory.HeapMemoryManager.reallocatePoolBuffer(HeapMemoryManager.java:260)
      2. org.glassfish.grizzly.memory.HeapMemoryManager.allocateHeapBuffer(HeapMemoryManager.java:191)
      3. org.glassfish.grizzly.memory.HeapMemoryManager.allocate(HeapMemoryManager.java:76)
      4. org.glassfish.grizzly.memory.HeapMemoryManager.allocate(HeapMemoryManager.java:59)
      4 frames
    3. Grizzly Server
      NIOOutputStreamImpl.write
      1. org.glassfish.grizzly.http.server.io.OutputBuffer.checkCurrentBuffer(OutputBuffer.java:589)
      2. org.glassfish.grizzly.http.server.io.OutputBuffer.write(OutputBuffer.java:355)
      3. org.glassfish.grizzly.http.server.NIOOutputStreamImpl.write(NIOOutputStreamImpl.java:84)
      3 frames
    4. Glassfish Core
      OutputBuffer.realWriteBytes
      1. org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:423)
      1 frame
    5. grizzly-http
      ByteChunk.append
      1. org.glassfish.grizzly.http.util.ByteChunk.flushBuffer(ByteChunk.java:434)
      2. org.glassfish.grizzly.http.util.ByteChunk.append(ByteChunk.java:356)
      2 frames
    6. Glassfish Core
      DefaultServlet.doGet
      1. org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:454)
      2. org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:441)
      3. org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:160)
      4. org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:2255)
      5. org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1991)
      6. org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1013)
      7. org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:439)
      7 frames
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      2 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    9. Glassfish Core
      SecurityUtil$1.run
      1. org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:323)
      2. org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:321)
      2 frames
    10. Java RT
      Subject.doAsPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
      2 frames
    11. Glassfish Core
      StandardPipeline.doInvoke
      1. org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:356)
      2. org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
      3. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1556)
      4. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:286)
      5. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
      6. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      6 frames