刚启动时没事,重新部署时就报这个严重错误,怎么回事??

pdj408 2011-08-25 09:19:35
严重: The web application [/native] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@10a485c]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@14beb6]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-8-25 9:16:13 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/native] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@10a485c]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@e37fe5]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-8-25 9:16:13 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/native] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@10a485c]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1e19d13]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
...全文
240 26 打赏 收藏 转发到动态 举报
写回复
用AI写文章
26 条回复
切换为时间正序
请发表友善的回复…
发表回复
pdj408 2011-08-25
  • 打赏
  • 举报
回复
导入在项目时,报这个错,Background Indexer Crach Recovery java.lang.StackOverflowError 然后还提示堆栈溢出错误
pdj408 2011-08-25
  • 打赏
  • 举报
回复
2011-8-25 11:07:14 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jdk1.6.0_10\bin;D:\apache-tomcat-6.0.30\bin
2011-8-25 11:07:14 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2011-8-25 11:07:14 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 762 ms
2011-8-25 11:07:15 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-8-25 11:07:15 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.30
2011-8-25 11:07:15 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor host-manager.xml
2011-8-25 11:07:15 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2011-8-25 11:07:15 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2011-8-25 11:07:15 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory enrollment
2011-8-25 11:07:16 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory examples
2011-8-25 11:07:16 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2011-8-25 11:07:16 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2011-8-25 11:07:16 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory native
2011-8-25 11:07:18 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2011-8-25 11:07:18 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2011-8-25 11:07:18 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2011-8-25 11:07:18 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2011-8-25 11:07:18 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Loading global messages from itcast
2011-8-25 11:07:20 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2011-8-25 11:07:20 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory servlet
2011-8-25 11:07:20 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory shopcart
2011-8-25 11:07:21 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory test
init invoked
2011-8-25 11:07:22 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory trolley
2011-8-25 11:07:22 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory Upload
2011-8-25 11:07:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2011-8-25 11:07:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2011-8-25 11:07:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2011-8-25 11:07:25 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2011-8-25 11:07:26 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2011-8-25 11:07:26 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2011-8-25 11:07:26 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/62 config=null
2011-8-25 11:07:26 org.apache.catalina.startup.Catalina start
信息: Server startup in 11864 ms
2011-8-25 11:17:37 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/native]
2011-8-25 11:17:37 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/native] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1936c40]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1a809a4]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-8-25 11:17:37 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
严重: The web application [/native] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1936c40]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@11b1fc4]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2011-8-25 11:17:39 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2011-8-25 11:17:40 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
2011-8-25 11:17:40 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-plugin.xml]
2011-8-25 11:17:40 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts.xml]
2011-8-25 11:17:40 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Loading global messages from itcast



重新发布的所有信息
pdj408 2011-08-25
  • 打赏
  • 举报
回复
[Quote=引用 21 楼 gukuitian 的回复:]
你发的异常信息全吗,感觉少了点东西,
第一次启动没错,重新发布报错?
应该是重发布的时候没有完全关闭吧,有些东西没有完全释放,提示你可能会出现内存泻漏;
这错应该是有别的原因的。异常信息不少吗?
[/Quote]
不少吧,就这三个,其他的都是正常信息,
gukuitian 2011-08-25
  • 打赏
  • 举报
回复
你发的异常信息全吗,感觉少了点东西,
第一次启动没错,重新发布报错?
应该是重发布的时候没有完全关闭吧,有些东西没有完全释放,提示你可能会出现内存泻漏;
这错应该是有别的原因的。异常信息不少吗?
小笨熊 2011-08-25
  • 打赏
  • 举报
回复
[Quote=引用 18 楼 pdj408 的回复:]

引用 16 楼 yangting_lisa 的回复:
你换个tomcat的版本吧,最好换个apache-tomcat-6.0.20。因为在网上看到说是更新Tomcat现任的一位程序员反对[Thread],所以新版的Tomca都会出现这问题(至少6.0.24和6.0.26以上都会出现这问题),而6.0以前的好像支持不大好,所以就选择了6.0.20。

但是内存溢出好象跟版本没关系吧!
怎么……
[/Quote]

要是catalina.bat文件中加一句话的,就是类似java 的 —Xms。。。多分点内存就行。 我说的换版本只是个建议,既然你用到了threadlocal,用完还是释放比较好。
pdj408 2011-08-25
  • 打赏
  • 举报
回复
[Quote=引用 17 楼 chdw 的回复:]
这个其实是指有代码使用了ThreadLocal,但是最后没有释放里面的值,这样会导致资源无法正常释放


你别管这个就行了,无所谓的。反正在生产上也不会有事没事重新部署
[/Quote]
刚启动不报错,第一次发布也没错,修改代码后重新发布就报这个错怎么回事呀?
pdj408 2011-08-25
  • 打赏
  • 举报
回复
[Quote=引用 16 楼 yangting_lisa 的回复:]
你换个tomcat的版本吧,最好换个apache-tomcat-6.0.20。因为在网上看到说是更新Tomcat现任的一位程序员反对[Thread],所以新版的Tomca都会出现这问题(至少6.0.24和6.0.26以上都会出现这问题),而6.0以前的好像支持不大好,所以就选择了6.0.20。
[/Quote]
但是内存溢出好象跟版本没关系吧!
怎么修改内存大小呀???
ChDw 2011-08-25
  • 打赏
  • 举报
回复
这个其实是指有代码使用了ThreadLocal,但是最后没有释放里面的值,这样会导致资源无法正常释放


你别管这个就行了,无所谓的。反正在生产上也不会有事没事重新部署
小笨熊 2011-08-25
  • 打赏
  • 举报
回复
你换个tomcat的版本吧,最好换个apache-tomcat-6.0.20。因为在网上看到说是更新Tomcat现任的一位程序员反对[Thread],所以新版的Tomca都会出现这问题(至少6.0.24和6.0.26以上都会出现这问题),而6.0以前的好像支持不大好,所以就选择了6.0.20。
pdj408 2011-08-25
  • 打赏
  • 举报
回复
导入大的项目还报堆内存溢出、、、、
pdj408 2011-08-25
  • 打赏
  • 举报
回复
网上有很多改内存,看过很多,不知道哪个对的,也改过一些,不过好像都没用
pdj408 2011-08-25
  • 打赏
  • 举报
回复
[Quote=引用 12 楼 yangting_lisa 的回复:]
你的tomcat用的是什么版本?还有你用的tomcat是插件版还是安装版?
[/Quote]
我的是apache-tomcat-6.0.30版本的,安装版
小笨熊 2011-08-25
  • 打赏
  • 举报
回复
你的tomcat用的是什么版本?还有你用的tomcat是插件版还是安装版?
pdj408 2011-08-25
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 yangting_lisa 的回复:]
引用 8 楼 pdj408 的回复:

去掉之后可以,不过重新导入就出现这个内存溢出的错


那你可以把tomcat的内存改大点,试试
[/Quote]
我试过很多方法,都不行
你有什么方法可以呀??
pdj408 2011-08-25
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 yangting_lisa 的回复:]
引用 4 楼 walkman_22 的回复:

引用 3 楼 yangting_lisa 的回复:
把应用去掉,tomcat能正常启动吗?


什么叫把应用去掉~~


就是把你的war包,或者项目的工程从tomcat下移除
[/Quote]
去掉之后可以,不过重新导入就出现这个内存溢出的错
小笨熊 2011-08-25
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 pdj408 的回复:]

去掉之后可以,不过重新导入就出现这个内存溢出的错
[/Quote]

那你可以把tomcat的内存改大点,试试
pdj408 2011-08-25
  • 打赏
  • 举报
回复
去掉之后可以,不过重新导入就出现这个内存溢出的错
gukuitian 2011-08-25
  • 打赏
  • 举报
回复
内存泄露?
小笨熊 2011-08-25
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 walkman_22 的回复:]

引用 3 楼 yangting_lisa 的回复:
把应用去掉,tomcat能正常启动吗?


什么叫把应用去掉~~
[/Quote]

就是把你的war包,或者项目的工程从tomcat下移除
小笨熊 2011-08-25
  • 打赏
  • 举报
回复
在服务器保持运行的状态中,redeploy这个项目, 就出现了异常,
。。。当然要stop之后 再redeploy啊
加载更多回复(6)

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧