Hello,

I've been reading up on Guice quite a bit and I like what I see.
Great work, Google!

Like lots of folks we currently use Spring for DI, in addition to
transaction management for Hibernate.  We have an application that is
fairly large (large for  us, anyways) and has lots of Hibernate
objects and Spring-based service beans.

The application is deployed to Glassfish v2.  One continuing issue we
have with this setup is a memory leak that occurs when ever we
redeploy the application.  The application is deployed, but when we
redeploy the application (without restarting Glassfish) memory usage
increases by 90+ MB.  After a few redeploys, Glassfish runs out of
memory and needs to be restarted.  Note that the application *does
not* leak memory while it's running; it's only during redeploys that
memory leaks.

While I'm sure we have some of our in-house written code is to blame,
I've long suspected that possibly Hibernate (due to the dynamic
proxying that makes all the magic happen) and Spring are culprits in
the memory leak.

So, after explaining all this, here are my questions:

1.  Can anybody comment on how efficient (or inefficient) Guice is
with memory and CPU?  Is Guice likely to have any better runtime
performance than Spring, or use less memory during runtime?  Will
Guice start up any faster (or slower) than Spring?

2.  Is there anything in Guice that might cause memory leaks in web
application when the application is redeployed?  I see Guice uses
parts of CGLIB, which I know a few years ago caused some nasty memory
leaks in Hibernate (which I've since been fixed, I believe).

3.  In general, can anybody comment on overall runtime performance of
Guice compared to Spring?  We don't really have any performance
problems now, but I always like to be on the lookout to improve where
we can and before we *need* to because the app couldn't scale with
usage.

Many thanks to Google for offering Guice!!

-Ryan




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to