java吧 关注:1,271,370贴子:12,778,756
  • 6回复贴,共1

【跪求大神】tomcat,java内存泄漏的问题

只看楼主收藏回复

严重: Error filterStart
2014-9-4 1:51:52 org.apache.catalina.core.StandardContext start
严重: Context [/E_learning] startup failed due to previous errors
2014-9-4 1:51:52 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/E_learning] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@164cbde]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@848ecc]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2014-9-4 1:51:52 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/E_learning] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@bb2bc3]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@363068]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.


IP属地:山西1楼2014-09-04 10:30回复
    度娘说的这3种方法表示 不行。。。。
    有些地方大概是说tomcat 6.025之后引入了一种内存泄露的检查机制,会把不能垃圾收集的对像做日志
    解决办法:
    法一:使用低于tomcat 6.0的版本
    法二:先将服务关掉,然后部署工程,再启动服务。
    在tomcat的server.xml文件中把
    <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
    这个监听给关了
    本人在开发过程中,由于以前用的是Tomcat 5.5的版本,所以没怎么遇到这个问题,今天由于其他功能的需要,装了个 6.0 的版本,一运行就出现了这个问题,也许每个人的情况会有些不一样,在此就不多说了。
    方法二,今天用的就是这个方法,还蛮有效的。
    至于第三个方法,本人没试过,不知道效果怎样。


    IP属地:山西2楼2014-09-04 10:31
    回复
      2025-07-27 19:07:13
      广告
      不感兴趣
      开通SVIP免广告
      大神呢? !~


      IP属地:山西3楼2014-09-04 10:44
      回复
        不看


        来自Android客户端4楼2014-09-04 10:53
        回复
          不懂帮顶


          来自Android客户端5楼2014-09-04 11:00
          回复
            咱吧 就没有大神的存在了吗?难道都是新学的啊


            IP属地:山西6楼2014-09-04 11:04
            回复


              来自Android客户端7楼2014-09-04 11:15
              回复