我在Grails中开发了一个应用程序。它使用Vaadin框架进行GUI。它运行在运行在Ubuntu服务器上的Tomcat6上。
您是否知道如何在日志文件中避免这些记录?
SEVERE: The web application [/myapplication] registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/myapplication] created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.orm.hibernate.support.HibernatePersistenceContextInterceptor$2@2818c2ce]) and a value of type [java.lang.Integer] (value [0]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/myapplication] created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.orm.hibernate.support.HibernatePersistenceContextInterceptor$1@719d76f2]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/myapplication] created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.orm.hibernate.validation.HibernateDomainClassValidator$1@18ec4424]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/myapplication] created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.orm.hibernate.validation.HibernateDomainClassValidator$1@18ec4424]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/myapplication] created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.orm.hibernate.validation.HibernateDomainClassValidator$1@18ec4424]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/myapplication] created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.orm.hibernate.validation.HibernateDomainClassValidator$1@18ec4424]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/myapplication] created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.orm.hibernate.support.HibernatePersistenceContextInterceptor$2@2818c2ce]) and a value of type [java.lang.Integer] (value [0]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/myapplication] created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.orm.hibernate.support.HibernatePersistenceContextInterceptor$1@719d76f2]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/myapplication] created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.orm.hibernate.validation.HibernateDomainClassValidator$1@18ec4424]) and a value of type [java.util.ArrayList] (value [[]]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/myapplication] created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.orm.hibernate.support.HibernatePersistenceContextInterceptor$2@2818c2ce]) and a value of type [java.lang.Integer] (value [0]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
SEVERE: The web application [/myapplication] created a ThreadLocal with key of type [null] (value [org.codehaus.groovy.grails.orm.hibernate.support.HibernatePersistenceContextInterceptor$1@719d76f2]) and a value of type [java.lang.Boolean] (value [false]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Dec 18, 2011 12:05:47 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
答案 0 :(得分:0)
这似乎是Tomcat6中的一个问题。它应该在Tomcat7中修复。有关详情,请参阅此处:http://wiki.apache.org/tomcat/MemoryLeakProtection#customThreadLocal
而且,这个严重不应该是无害的 - 请参阅Spring论坛上的对话:http://forum.springsource.org/showthread.php?84202-Installation-ThreadLocal-forcefully-removed