日期:2014-05-18  浏览次数:20875 次

请教!关闭tomcat时,碰到的问题?Waiting for 6 instance(s) to be deallocated
在我的项目中,当我shutdown   tomcat   时,
在   catalina.out中会有如下信息:
2007-6-11   18:08:55   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   1   instance(s)   to   be   deallocated
2007-6-11   18:08:56   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   1   instance(s)   to   be   deallocated
2007-6-11   18:08:57   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   1   instance(s)   to   be   deallocated
2007-6-11   18:08:58   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   2   instance(s)   to   be   deallocated
2007-6-11   18:08:59   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   2   instance(s)   to   be   deallocated
2007-6-11   18:09:00   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   2   instance(s)   to   be   deallocated
2007-6-11   18:09:00   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   6   instance(s)   to   be   deallocated
2007-6-11   18:09:01   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   6   instance(s)   to   be   deallocated
2007-6-11   18:09:02   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   6   instance(s)   to   be   deallocated
2007-6-11   18:09:04   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   380   instance(s)   to   be   deallocated
2007-6-11   18:09:05   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   380   instance(s)   to   be   deallocated
2007-6-11   18:09:06   org.apache.catalina.core.StandardWrapper   unload
信息:   Waiting   for   380   instance(s)   to   be   deallocated

请问这是怎么回事?
是不是表示,程序里有死循环?

------解决方案--------------------
请问高手?
------解决方案--------------------
连接数太多?
数据库的连接没有关闭?
------解决方案--------------------
是的 没关闭连接。

------解决方案--------------------
应该是你自己数据库连接池的问题,好好看看