caused by: Java. lang. outofmemoryerror: Java heap space
Org. apache. jasper. jasperexception: javax. servlet. servletexception: JAVA. lang. outofmemoryerror: Java heap space
14:32:37 Org. apache. catalina. core. applicationcontext log
information: javax. servlet. servletexception: Java. lang. outofmemoryerror: Java heap space
at Org. apache. jasper. servlet. jspservletwrapper. handlejspexception (jspservletwrapper. java: 505)
at Org. apache. jasper. servlet. jspservletwrapper. service (jspservletwrapper. java: 417)
at Org. apache. jasper. servlet. jspservlet. servicejspfile (jspservlet. java: 320)
at Org. apache. jasper. servlet. jspservlet. service (jspservlet. java: 266)
at javax. servlet. HTTP. httpservlet. service (httpservlet. java: 803)
Cause:
Use JavaProgramAn exception occurred when querying a large amount of data from the database: Java. Lang. outofmemoryerror: Java heap Space
This exception is thrown if 98% is used for GC and the available heap size is less than 2% in JVM.
JVM heap setting refers to the setting of memory space that JVM can allocate during Java program running. the JVM automatically sets the heap size value at startup. The initial space (-XMS) is 1/64 of the physical memory, and the maximum space (-xmx) is 1/4 of the physical memory. You can use options such as-xmn-XMS-xmx provided by JVM to set the configuration.
Solution Under myeclipse:
Window --> preference --> myeclipse --> application servers --> Tomcat 6. x --> JDK --> optional Java VM arguments:
-Xms100m-xmx200m-XX: permsize = 256 m-XX: maxpermsize = 600 m