You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Andrew Willerding <aw...@callistacti.com> on 2010/07/20 15:28:25 UTC
Memory Leak?
When starting my web app under Tomcat 6.0.26, I get the following logged..
(The application otherwise appears to be working fine so I'm just
wondering if I should be concerned or how to prevent this error from
happening upon startup)
20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesJdbc
SEVERE: A web application registered the JBDC driver
[com.ibm.db2.jcc.DB2Driver] but failed to unregister it when the web
application was stopped. To prevent a memory leak, the JDBC Driver has
been forcibly unregistered.
20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: A web application appears to have started a thread named
[cayenne-edt-597457953-0] but has failed to stop it. This is very likely
to create a memory leak.
20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: A web application appears to have started a thread named
[cayenne-edt-597457953-1] but has failed to stop it. This is very likely
to create a memory leak.
20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: A web application appears to have started a thread named
[cayenne-edt-597457953-2] but has failed to stop it. This is very likely
to create a memory leak.
20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: A web application appears to have started a thread named
[cayenne-edt-597457953-3] but has failed to stop it. This is very likely
to create a memory leak.
20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: A web application appears to have started a thread named
[cayenne-edt-597457953-4] but has failed to stop it. This is very likely
to create a memory leak.
20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: A web application appears to have started a thread named
[PoolManagerCleanup-2013151593] but has failed to stop it. This is very
likely to create a memory leak.
log4j:WARN No appenders could be found for logger
(org.apache.cayenne.conf.DefaultConfiguration).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Thanks,
Andrew
Re: Memory Leak?
Posted by Andrew Willerding <aw...@callistacti.com>.
On 10-07-20 09:36 AM, Andrus Adamchik wrote:
> Also I think we should add this shutdown code to Cayenne
> WebApplicationContextFilter. Will log a Jira for 3.0.1.
>
> Andrus
Excellent. Thank you.
>
>
> On Jul 20, 2010, at 4:34 PM, Andrus Adamchik wrote:
>
>> You are probably using hot redeploy. In this case you will need to
>> shut down EventManager in a "destroy" method of your servlet or
>> filter. This will kill those cayenne-edt threads from the undeployed
>> application.
>>
>> Andrus
>>
Yes I am using hot redeploy for debugging purposes at the moment.
Re: Memory Leak?
Posted by Andrus Adamchik <an...@objectstyle.org>.
Also I think we should add this shutdown code to Cayenne
WebApplicationContextFilter. Will log a Jira for 3.0.1.
Andrus
On Jul 20, 2010, at 4:34 PM, Andrus Adamchik wrote:
> You are probably using hot redeploy. In this case you will need to
> shut down EventManager in a "destroy" method of your servlet or
> filter. This will kill those cayenne-edt threads from the undeployed
> application.
>
> Andrus
>
>
> On Jul 20, 2010, at 4:28 PM, Andrew Willerding wrote:
>
>> When starting my web app under Tomcat 6.0.26, I get the following
>> logged..
>>
>> (The application otherwise appears to be working fine so I'm just
>> wondering if I should be concerned or how to prevent this error
>> from happening upon startup)
>>
>> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
>> clearReferencesJdbc
>> SEVERE: A web application registered the JBDC driver
>> [com.ibm.db2.jcc.DB2Driver] but failed to unregister it when the
>> web application was stopped. To prevent a memory leak, the JDBC
>> Driver has been forcibly unregistered.
>> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
>> clearReferencesThreads
>> SEVERE: A web application appears to have started a thread named
>> [cayenne-edt-597457953-0] but has failed to stop it. This is very
>> likely to create a memory leak.
>> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
>> clearReferencesThreads
>> SEVERE: A web application appears to have started a thread named
>> [cayenne-edt-597457953-1] but has failed to stop it. This is very
>> likely to create a memory leak.
>> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
>> clearReferencesThreads
>> SEVERE: A web application appears to have started a thread named
>> [cayenne-edt-597457953-2] but has failed to stop it. This is very
>> likely to create a memory leak.
>> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
>> clearReferencesThreads
>> SEVERE: A web application appears to have started a thread named
>> [cayenne-edt-597457953-3] but has failed to stop it. This is very
>> likely to create a memory leak.
>> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
>> clearReferencesThreads
>> SEVERE: A web application appears to have started a thread named
>> [cayenne-edt-597457953-4] but has failed to stop it. This is very
>> likely to create a memory leak.
>> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
>> clearReferencesThreads
>> SEVERE: A web application appears to have started a thread named
>> [PoolManagerCleanup-2013151593] but has failed to stop it. This is
>> very likely to create a memory leak.
>> log4j:WARN No appenders could be found for logger
>> (org.apache.cayenne.conf.DefaultConfiguration).
>> log4j:WARN Please initialize the log4j system properly.
>> log4j:WARN See http://logging.apache.org/log4j/1.2/
>> faq.html#noconfig for more info.
>>
>> Thanks,
>>
>> Andrew
>>
>
>
Re: Memory Leak?
Posted by Andrus Adamchik <an...@objectstyle.org>.
You are probably using hot redeploy. In this case you will need to
shut down EventManager in a "destroy" method of your servlet or
filter. This will kill those cayenne-edt threads from the undeployed
application.
Andrus
On Jul 20, 2010, at 4:28 PM, Andrew Willerding wrote:
> When starting my web app under Tomcat 6.0.26, I get the following
> logged..
>
> (The application otherwise appears to be working fine so I'm just
> wondering if I should be concerned or how to prevent this error from
> happening upon startup)
>
> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
> clearReferencesJdbc
> SEVERE: A web application registered the JBDC driver
> [com.ibm.db2.jcc.DB2Driver] but failed to unregister it when the web
> application was stopped. To prevent a memory leak, the JDBC Driver
> has been forcibly unregistered.
> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: A web application appears to have started a thread named
> [cayenne-edt-597457953-0] but has failed to stop it. This is very
> likely to create a memory leak.
> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: A web application appears to have started a thread named
> [cayenne-edt-597457953-1] but has failed to stop it. This is very
> likely to create a memory leak.
> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: A web application appears to have started a thread named
> [cayenne-edt-597457953-2] but has failed to stop it. This is very
> likely to create a memory leak.
> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: A web application appears to have started a thread named
> [cayenne-edt-597457953-3] but has failed to stop it. This is very
> likely to create a memory leak.
> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: A web application appears to have started a thread named
> [cayenne-edt-597457953-4] but has failed to stop it. This is very
> likely to create a memory leak.
> 20-Jul-2010 9:16:40 AM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: A web application appears to have started a thread named
> [PoolManagerCleanup-2013151593] but has failed to stop it. This is
> very likely to create a memory leak.
> log4j:WARN No appenders could be found for logger
> (org.apache.cayenne.conf.DefaultConfiguration).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
> for more info.
>
> Thanks,
>
> Andrew
>