Wouter Zoons wrote:
What I basically want to do is reduce memory consumption, and memory leaks on redeployment. I don't know if you guys are aware of this (I wasn't and personnally I am stunned):
<quote> Why does the memory usage increase when I redeploy a web application? Because the Classloader (and the Class objects it loaded) cannot be recycled. They are stored in the permanent heap generation by the JVM, and when you redeploy a new class loader is created, which loads another copy of all these classes. This can cause OufOfMemoryErrors eventually. </quote>
yeah, that's indeed something very annoying that has been bothering me too
In the case of big webapps (the ones you typically depend on an MDA tool for), it arises rather quickly.
Having one instance of the spring and hibernate libraries for each webapp is certainly not an ideal situation regarding this problem.
IMO, this is a shame, really! shame for j2ee and java altogether.
can't you put those libraries in a common/shared server /lib location ? I know both Tomcat and JBoss allow this
This is always fine when your apps are using the same version of the libraries, however (like in most places) when you have old apps running along side new apps within the same container, you can't do this (that's why its a good idea to bundle all the libraries you need within your war). By the way, tomcat restarts so fast, that I don't really see the issue. I know it would be nice for it never to run out of memory after lots of deploys, but then again its always fine to restart your development instance.
-- Wouter
------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
