felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "daniel stieger" <Daniel.Stie...@gmx.at>
Subject Aw: Re: Fw: Mem Leak
Date Wed, 22 Nov 2017 16:05:28 GMT

Hi Milen,

thanks for your comment! I just wanted to let you know, that the problem was the log4j implementation,
which got stuck and prevented the bundle with classloader to completely uninstall.

I moved the log4j and the oracle jdbc drive (also problematic) into a separate bundle. This
bundle does not get uninstalled. So no more problems with other bundles. 

Cheers,
Daniel
  
 


 

Gesendet: Montag, 20. November 2017 um 15:42 Uhr
Von: "Milen Dyankov" <milendyankov@gmail.com>
An: users@felix.apache.org
Betreff: Re: Fw: Mem Leak
Have you tried to refresh (there is gogo command for that) your runtime?
AFAIK some wirings remain after the bundle is unistalled until the
framework is refreshed.

On Mon, Nov 20, 2017 at 1:59 PM, daniel stieger <Daniel.Stieger@gmx.at>
wrote:

>
>
>
>
> Gesendet: Montag, 20. November 2017 um 13:58 Uhr
> Von: "daniel stieger" <Daniel.Stieger@gmx.at>
> An: users@felix.apache.org
> Betreff: Mem Leak
>
> Gentlemen,
>
> i m just struggeling with some bundle unloading problem. Maybe someone can
> point me towards the right direction for some research.
>
> Here s my situation:
> (1) I created an osgi bundle which does not export anything. I m just
> using spring ioc to set up some beans .. (ver 3.0.5)
> (2) I deploy this bundle via apache felix file install to a felix 5.6.8
> (3) i uninstall that very bundle via shell ...
> (4) then i use visual vm to fore a garbage collection, wait some time and
> force again
> (5) then i check with visualvm if specific classes from my bundle are
> still around.
>
>
> * Well, yes there are some classes still around: but only enum constants
> as instances, all other instance counts are 0
> * The classloader used by my bundle is also around
> * But everywhere i check GC-Roots, the visual vm tells me "No gc-root
> found"
> * Also on the classloader itself .. BundelWiringImpl$BundleClassLoader it
> tells me that "no gc-root found"
>
>
> Any idea how i can investigate this issue further? Clearly, after
> uninstalling the bundle, i do want to get rid of all classes loaded by that
> bundle..
>
> Any help apreciated,
> Daniel
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


--
http://about.me/milen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message