版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bitree1/article/details/50184055
org.apache.catalina.core.StandardContext listenerStart 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/classes/applicationContext.xml]; nested exception is java.lang.OutOfMemoryError: PermGen space Caused by: java.lang.OutOfMemoryError: PermGen space org.apache.catalina.core.StandardContext start 严重: Error listenerStart org.apache.catalina.core.StandardContext start 严重: Context [/testAjax] startup failed due to previous errors org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext org.apache.catalina.core.StandardContext listenerStop 严重: Exception sending context destroyed event to listener instance of class com.sun.faces.config.ConfigureListener java.lang.OutOfMemoryError: PermGen space org.apache.catalina.core.StandardContext listenerStop 严重: Exception sending context destroyed event to listener instance of class com.sun.faces.config.ConfigureListener java.lang.OutOfMemoryError: PermGen space
严重: Error deploying web application directory YanZhengMa java.lang.OutOfMemoryError: PermGen space java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.OutOfMemoryError: PermGen space
实是内存溢出.出现这个问题可能有好几个原因:
1.你tomcat部署的项目太多了,建议清空tomcat/work下的文件夹,重新部署需要的那个项目.
2.你可能用apache+tomcat进行整合了,但是没配置好,导致用户请求页面的是和产生了转发死循环,导致内存溢出.解决办法是重新配置你的服务器.因为这个问题比较麻烦,你可以先把项目放到一个新的tomcat下试试能不能启动
.3.还有一种情况就是你程序写的有问题了,出现的原因应该是你的类加载器一直加载类文件,导致默认的内存空间不够用了.是不是工厂方法没有用.