启动SSH框架项目 Tomcat报错

 

严重: 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
2010-6-15 16:59:19 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2010-6-15 16:59:19 org.apache.catalina.core.StandardContext start
严重: Context [/testAjax] startup failed due to previous errors
2010-6-15 16:59:19 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2010-6-15 16:59:22 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
2010-6-15 16:59:25 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.还有一种情况就是你程序写的有问题了,出现的原因应该是你的类加载器一直加载类文件,导致默认的内存空间不够用了.是不是工厂方法没有用.
 
4.一般情况都是项目太多,直接重新部署就行
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

情绪零碎碎

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值