tomcat设置自动加载 内存溢出

版本:apache-tomcat-5.5.23 jrockit-jdk1.5.0_11 设置了自动加载class 设置了内存-Xms1024m
-Xmx1024m 服务器上只有10javax.servlet.ServletException: class allocation JVM@check_alloc (src/jvm/model/classload/classalloc.c:122). 1296 bytes requested. Java heapsize=1073741824, pa
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
com.filter.EncodingFilter.doFilter(EncodingFilter.java:24)


root cause

java.lang.OutOfMemoryError: class allocation JVM@check_alloc (src/jvm/model/classload/classalloc.c:122). 1296 bytes requested. Java heapsize=1073741824, pa
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1876)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:889)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1353)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:88)
javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:278)
javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185)
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:98)
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:89)多个网站,只要有网站更新很多class的话,肯定使服务器内存溢出,如何根治这种问题呢

你可能感兴趣的:(java,apache,jvm,tomcat,servlet)