Hi,

While it goes well to load my Qi4j app as an OSGi bundle, I'm having trouble with classloader leaks. Specifically, in MixinModel and AbstractModifierModel there are usages of BridgeClassLoader for the CGLIB Enhancer, and when I uninstall my app I see LOADS of them hanging around even though I would have wanted them to be GC'ed. Looking at heapdumps the references are coming from Enhancer.SOURCE in CGLIB. I have turned off caching, which should help, but doesn't.

Also, I don't understand why that ref is holding on to them, because it's a WeakHashMap. Shouldn't the BridgeClassLoader be GC'ed if the only references to it are from WeakHashMaps??

All in all, I feel like I have hit my capacity on OSGi and classloading, and would appreciate some assistance. Stuart, do you have some ideas??

regards, Rickard

ps. I did find this which talks about it, but it's a bit difficult to understand:
http://www.infoq.com/articles/code-generation-with-osgi

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to