You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Trevor Stevens <ts...@me.com> on 2013/07/03 18:03:10 UTC

Non-JTA datasources not cleaned up completely after closed

When a webapp with a datasource defined in a resources.xml is undeployed OpenEJB fails to completely cleanup after the datasource and there is still a reference to the datasource in the jndi tree.

Screenshot to jndi tree after undeploy http://d.pr/i/Bv0X

Test case showing this https://www.dropbox.com/s/z8ag4wgwcnv8ry5/datasource-leak.zip

Jul 3, 2013 11:54:01 AM org.apache.catalina.startup.HostConfig deleteRedeployResources
INFO: Undeploying context [/datasource-leak]
Jul 3, 2013 11:54:01 AM org.apache.openejb.assembler.classic.Assembler destroyApplication
INFO: Undeploying app: /Users/tstevens/Downloads/apache-tomee-plus-1.6.0-SNAPSHOT/webapps/datasource-leak
Jul 3, 2013 11:54:01 AM org.apache.openejb.assembler.classic.Assembler destroyResource
INFO: Closing DataSource: datasource-leak/resources/jdbc/stopclassloaderleak

Thanks,
Trevor Stevens
tstevens@me.com



Re: Non-JTA datasources not cleaned up completely after closed

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

https://issues.apache.org/jira/browse/TOMEE-989 should solve it

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/7/3 Trevor Stevens <ts...@me.com>

> I just checked the test case in apache-tomee-1.6.0-20130703.041224-115 and
> it is still present.
>
> Trevor Stevens
> tstevens@me.com
>
>
> On Jul 3, 2013, at 12:17 PM, Trevor Stevens <ts...@me.com> wrote:
>
> > I have 1.6 Snapshot from a day or two ago. I can try the test case in
> the latest snapshot to see if it is the same.
> >
> > Trevor Stevens
> > Sent from my iPhone
> >
> > On Jul 3, 2013, at 12:12 PM, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
> >
> >> Hi
> >>
> >> you didnt mention the version, did you test against trunk? it was a bit
> >> refactored
> >>
> >> *Romain Manni-Bucau*
> >> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> >> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >> *Github: https://github.com/rmannibucau*
> >>
> >>
> >>
> >> 2013/7/3 Trevor Stevens <ts...@me.com>
> >>
> >>> When a webapp with a datasource defined in a resources.xml is
> undeployed
> >>> OpenEJB fails to completely cleanup after the datasource and there is
> still
> >>> a reference to the datasource in the jndi tree.
> >>>
> >>> Screenshot to jndi tree after undeploy http://d.pr/i/Bv0X
> >>>
> >>> Test case showing this
> >>> https://www.dropbox.com/s/z8ag4wgwcnv8ry5/datasource-leak.zip
> >>>
> >>> Jul 3, 2013 11:54:01 AM org.apache.catalina.startup.HostConfig
> >>> deleteRedeployResources
> >>> INFO: Undeploying context [/datasource-leak]
> >>> Jul 3, 2013 11:54:01 AM org.apache.openejb.assembler.classic.Assembler
> >>> destroyApplication
> >>> INFO: Undeploying app:
> >>>
> /Users/tstevens/Downloads/apache-tomee-plus-1.6.0-SNAPSHOT/webapps/datasource-leak
> >>> Jul 3, 2013 11:54:01 AM org.apache.openejb.assembler.classic.Assembler
> >>> destroyResource
> >>> INFO: Closing DataSource:
> >>> datasource-leak/resources/jdbc/stopclassloaderleak
> >>>
> >>> Thanks,
> >>> Trevor Stevens
> >>> tstevens@me.com
> >>>
> >>>
> >>>
>
>

Re: Non-JTA datasources not cleaned up completely after closed

Posted by Trevor Stevens <ts...@me.com>.
I just checked the test case in apache-tomee-1.6.0-20130703.041224-115 and it is still present.

Trevor Stevens
tstevens@me.com


On Jul 3, 2013, at 12:17 PM, Trevor Stevens <ts...@me.com> wrote:

> I have 1.6 Snapshot from a day or two ago. I can try the test case in the latest snapshot to see if it is the same.
> 
> Trevor Stevens
> Sent from my iPhone
> 
> On Jul 3, 2013, at 12:12 PM, Romain Manni-Bucau <rm...@gmail.com> wrote:
> 
>> Hi
>> 
>> you didnt mention the version, did you test against trunk? it was a bit
>> refactored
>> 
>> *Romain Manni-Bucau*
>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>> *Github: https://github.com/rmannibucau*
>> 
>> 
>> 
>> 2013/7/3 Trevor Stevens <ts...@me.com>
>> 
>>> When a webapp with a datasource defined in a resources.xml is undeployed
>>> OpenEJB fails to completely cleanup after the datasource and there is still
>>> a reference to the datasource in the jndi tree.
>>> 
>>> Screenshot to jndi tree after undeploy http://d.pr/i/Bv0X
>>> 
>>> Test case showing this
>>> https://www.dropbox.com/s/z8ag4wgwcnv8ry5/datasource-leak.zip
>>> 
>>> Jul 3, 2013 11:54:01 AM org.apache.catalina.startup.HostConfig
>>> deleteRedeployResources
>>> INFO: Undeploying context [/datasource-leak]
>>> Jul 3, 2013 11:54:01 AM org.apache.openejb.assembler.classic.Assembler
>>> destroyApplication
>>> INFO: Undeploying app:
>>> /Users/tstevens/Downloads/apache-tomee-plus-1.6.0-SNAPSHOT/webapps/datasource-leak
>>> Jul 3, 2013 11:54:01 AM org.apache.openejb.assembler.classic.Assembler
>>> destroyResource
>>> INFO: Closing DataSource:
>>> datasource-leak/resources/jdbc/stopclassloaderleak
>>> 
>>> Thanks,
>>> Trevor Stevens
>>> tstevens@me.com
>>> 
>>> 
>>> 


Re: Non-JTA datasources not cleaned up completely after closed

Posted by Trevor Stevens <ts...@me.com>.
I have 1.6 Snapshot from a day or two ago. I can try the test case in the latest snapshot to see if it is the same.

Trevor Stevens
Sent from my iPhone

On Jul 3, 2013, at 12:12 PM, Romain Manni-Bucau <rm...@gmail.com> wrote:

> Hi
> 
> you didnt mention the version, did you test against trunk? it was a bit
> refactored
> 
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
> 
> 
> 
> 2013/7/3 Trevor Stevens <ts...@me.com>
> 
>> When a webapp with a datasource defined in a resources.xml is undeployed
>> OpenEJB fails to completely cleanup after the datasource and there is still
>> a reference to the datasource in the jndi tree.
>> 
>> Screenshot to jndi tree after undeploy http://d.pr/i/Bv0X
>> 
>> Test case showing this
>> https://www.dropbox.com/s/z8ag4wgwcnv8ry5/datasource-leak.zip
>> 
>> Jul 3, 2013 11:54:01 AM org.apache.catalina.startup.HostConfig
>> deleteRedeployResources
>> INFO: Undeploying context [/datasource-leak]
>> Jul 3, 2013 11:54:01 AM org.apache.openejb.assembler.classic.Assembler
>> destroyApplication
>> INFO: Undeploying app:
>> /Users/tstevens/Downloads/apache-tomee-plus-1.6.0-SNAPSHOT/webapps/datasource-leak
>> Jul 3, 2013 11:54:01 AM org.apache.openejb.assembler.classic.Assembler
>> destroyResource
>> INFO: Closing DataSource:
>> datasource-leak/resources/jdbc/stopclassloaderleak
>> 
>> Thanks,
>> Trevor Stevens
>> tstevens@me.com
>> 
>> 
>> 

Re: Non-JTA datasources not cleaned up completely after closed

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

you didnt mention the version, did you test against trunk? it was a bit
refactored

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/7/3 Trevor Stevens <ts...@me.com>

> When a webapp with a datasource defined in a resources.xml is undeployed
> OpenEJB fails to completely cleanup after the datasource and there is still
> a reference to the datasource in the jndi tree.
>
> Screenshot to jndi tree after undeploy http://d.pr/i/Bv0X
>
> Test case showing this
> https://www.dropbox.com/s/z8ag4wgwcnv8ry5/datasource-leak.zip
>
> Jul 3, 2013 11:54:01 AM org.apache.catalina.startup.HostConfig
> deleteRedeployResources
> INFO: Undeploying context [/datasource-leak]
> Jul 3, 2013 11:54:01 AM org.apache.openejb.assembler.classic.Assembler
> destroyApplication
> INFO: Undeploying app:
> /Users/tstevens/Downloads/apache-tomee-plus-1.6.0-SNAPSHOT/webapps/datasource-leak
> Jul 3, 2013 11:54:01 AM org.apache.openejb.assembler.classic.Assembler
> destroyResource
> INFO: Closing DataSource:
> datasource-leak/resources/jdbc/stopclassloaderleak
>
> Thanks,
> Trevor Stevens
> tstevens@me.com
>
>
>