indeed there is a memory leak. As workarounds goes I used
o) Thread "unleaker" - basically a ServletContextListener that finds
any
Finalizer Threads and clears the "bad" references. The WebAppCL is
clear to be GCed but the Finalizer thread sticks around until the perm
gen gets full. I don't like it.
o) A custom Guice distribution that has an explicit method to
shutdown. This is what I am currently using.
imho it would not hurt to have an explicit shutdown method in the
official version. Like injector.stopFinalizer(); for those of us who
can't restart-to-redeploy. It's better to have one more method than
one more memory leak.
Cheers
Alen
Gili
Umm... the decent workaround is to restart your application when you
redeploy.
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
On Thu, Mar 25, 2010 at 8:55 AM, je...@swank.ca <limpb...@gmail.com> wrote:
On Mar 25, 6:30 am, cowwoc <cow...@bbs.darktech.org> wrote:
> [...] I don't like the fact that you've chosen to ship the
> product with a pretty sizable memory leak and no decent workaround.Umm... the decent workaround is to restart your application when you
redeploy.
+1
I'll fix it eventually. My fix will only work on specific VM's, of course, as it'll depend on private APIs.
Do you mean to restart the entire JVM?What is that Finalizer used for?
Gili
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
I would find that helpful too. It doesn't have to be either/ or either, right?
Eelco
Eelco
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.