当前位置: 代码迷 >> J2EE >> java.lang.OutOfMemoryError: PermGen space
  详细解决方案

java.lang.OutOfMemoryError: PermGen space

热度:249   发布时间:2016-04-22 03:02:21.0
tomcat 启动出错
错误信息如下。。
Java code
2011-9-25 0:24:30 org.apache.catalina.startup.HostConfig checkResources信息: Reloading context [/myBlog_ssh_005]2011-9-25 0:24:30 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info信息: Parsing configuration file [struts-default.xml]2011-9-25 0:24:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info信息: Unable to locate configuration files of the name struts-plugin.xml, skipping2011-9-25 0:24:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info信息: Parsing configuration file [struts-plugin.xml]2011-9-25 0:24:31 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info信息: Parsing configuration file [struts.xml]2011-9-25 0:24:43 org.apache.catalina.core.ApplicationContext log信息: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'2011-9-25 0:24:43 org.apache.catalina.core.ApplicationContext log信息: HTMLManager: init: Global resources are available2011-9-25 0:24:43 org.apache.catalina.core.ApplicationContext log信息: HTMLManager: list: Listing contexts for virtual host 'localhost'2011-9-25 0:24:50 org.apache.catalina.core.StandardWrapperValve invoke严重: Servlet.service() for servlet jsp threw exceptionjava.lang.OutOfMemoryError: PermGen space    at java.lang.ClassLoader.defineClass1(Native Method)    at java.lang.ClassLoader.defineClass(Unknown Source)    at java.security.SecureClassLoader.defineClass(Unknown Source)    at java.net.URLClassLoader.defineClass(Unknown Source)    at java.net.URLClassLoader.access$000(Unknown Source)    at java.net.URLClassLoader$1.run(Unknown Source)    at java.security.AccessController.doPrivileged(Native Method)    at java.net.URLClassLoader.findClass(Unknown Source)    at java.lang.ClassLoader.loadClass(Unknown Source)    at java.lang.ClassLoader.loadClass(Unknown Source)    at java.lang.ClassLoader.loadClassInternal(Unknown Source)    at org.eclipse.jdt.internal.compiler.Compiler.initializeParser(Compiler.java:560)    at org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:263)    at org.eclipse.jdt.internal.compiler.Compiler.<init>(Compiler.java:153)    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:307)    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:309)    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:88)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)


(郁闷中。。求解啊)。。

------解决方案--------------------
内存溢出 重启下
------解决方案--------------------
  相关解决方案