java.lang.OutOfMemoryError: Java heap space

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by seagate-746906, 1 year ago
java.lang.OutOfMemoryError: Java heap space
at org.glassfish.grizzly.memory.HeapMemoryManager.reallocatePoolBuffer(HeapMemoryManager.java:260)
at org.glassfish.grizzly.memory.HeapMemoryManager.allocateHeapBuffer(HeapMemoryManager.java:191)
at org.glassfish.grizzly.memory.HeapMemoryManager.allocate(HeapMemoryManager.java:76)
at org.glassfish.grizzly.http.server.io.OutputBuffer.checkCurrentBuffer(OutputBuffer.java:589)
at org.glassfish.grizzly.http.server.io.OutputBuffer.write(OutputBuffer.java:355)
at org.glassfish.grizzly.http.util.ByteChunk.flushBuffer(ByteChunk.java:434)
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:454)
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:441)
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:160)
at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:2255)
at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1991)
at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1013)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:323)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:356)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:212)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1556)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:286)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.