当我在Tomcat中重新部署我的应用程序时,我遇到了以下问题:
The web application [] created a ThreadLocal with key of type
[java.lang.ThreadLocal] (value [java.lang.ThreadLocal@10d16b])
and a value of type [com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty]
(value [com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty@1a183d2]) but
failed to remove it when the web application was stopped.
This is very likely to create a memory leak.
另外,我在我的应用程序中使用了ehcache。这也似乎导致了以下异常。
SEVERE: The web application [] created a ThreadLocal with key of type [null]
(value [com.sun.xml.bind.v2.ClassFactory$1@24cdc7]) and a value of type [java
.util.WeakHashMap...
看起来ehcache似乎创建了一个弱哈希映射表,而我收到了这样的消息,很可能会导致内存泄漏。
我在网上搜索发现了这个链接,但我没有访问服务器的权限。
请告诉我这些警告是否有功能影响或者可以忽略?我在tomcat管理器中使用了“查找内存泄漏”选项,它显示“未发现内存泄漏”。