Updates:
Status: Duplicate
Mergedinto: 288
Comment #6 on issue 630 by [email protected]: Guice + Tomcat potential
memory leak
http://code.google.com/p/google-guice/issues/detail?id=630
Issue 288 (the background finalizer thread) will be fixed when the Guava
dependency is upgraded to r10+
The ThreadLocal reported by Tomcat is separate - this is actually a simple
Object array of length 1 which is used to manage contexts during injection.
The array element is guaranteed to be null outside of any call to the
injector so it won't cause any leak. The ThreadLocal will be reclaimed
after the injector is no longer referenced. However it may appear to stay
around for longer if you use reflection to peek into the ThreadLocal map
like Tomcat does, due to the current JDK ThreadLocal implementation.
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.