Status: New
Owner: ----

New issue 768 by [email protected]: guice-servlet+guice-persist -- Memory leak
http://code.google.com/p/google-guice/issues/detail?id=768

When a simple guice servlet application is created, e.g. following the example in the wiki (https://code.google.com/p/google-guice/wiki/ServletModule), it can be deployed and redeployed several times without problems.

With the usage of guice-persist a memory leak occurs. This happens as soon as the following two lines are added to the configuration class:

install(new JpaPersistModule("name"));
filter("/*").through(PersistFilter.class);

On a running application server (tested with Tomcat) multiple redeploys result in a PermGen exception.

As a profiler reveals, several instances of Guice's own classes cannot be garbage collected after undeployment.

This was tested with guice version 4.0-beta and 3.0.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to