Status: New
Owner: ----

New issue 707 by christop...@gmail.com: ThreadLocal leak
http://code.google.com/p/google-guice/issues/detail?id=707

Hi

Once I've unloaded my app from my web container (Jetty or Tomcat), I see the following ThreadLocal sticking around in InjectorImpl.

I assume it needs to be cleaned up when Context is destroyed.
Cheers
Chris



Class Name | Ref. Objects | Shallow Heap | Ref. Shallow Heap | Retained Heap
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
java.lang.Thread @ 0xad6b8d0 qtp1633127083-14 Native Stack, Thread | 1 | 176 | 88 | 21,896 '- threadLocals java.lang.ThreadLocal$ThreadLocalMap @ 0xb76c730 | 1 | 32 | 88 | 21,312 '- table java.lang.ThreadLocal$ThreadLocalMap$Entry[32] @ 0xb76c750 | 1 | 280 | 88 | 21,280 '- [16] java.lang.ThreadLocal$ThreadLocalMap$Entry @ 0xb76cde8 | 1 | 56 | 88 | 88 '- referent com.google.inject.internal.InjectorImpl$1 @ 0xaebd2b8 | 1 | 32 | 88 | 384,440 '- this$0 com.google.inject.internal.InjectorImpl @ 0xaebd2d8 | 1 | 88 | 88 | 384,408 '- state com.google.inject.internal.InheritingState @ 0xaebd330 | 1 | 88 | 88 | 9,912 '- explicitBindingsMutable java.util.LinkedHashMap @ 0xaebd398 | 1 | 80 | 88 | 5,608 '- table java.util.HashMap$Entry[128] @ 0xaebd400 | 1 | 1,048 | 88 | 1,048 '- [119] java.util.LinkedHashMap$Entry @ 0xb0170f8 | 1 | 64 | 88 | 64 '- value com.google.inject.internal.ProviderInstanceBindingImpl @ 0xb0171b8 | 1 | 80 | 88 | 536 '- providerInstance com.google.inject.servlet.ServletDefinition @ 0xaec2cc0 | 1 | 64 | 88 | 504 '- httpServlet java.util.concurrent.atomic.AtomicReference @ 0xaec2ec0 | 1 | 24 | 88 | 24 '- value com.tyndalehouse.step.rest.framework.FrontController @ 0xb2a7c70| 1 | 88 | 88 | 43,968
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to google-guice-dev@googlegroups.com.
To unsubscribe from this group, send email to 
google-guice-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to