Dear all, I've been struggling with a Permgen error on my application's development: after a number of re-deployments, I get a permgen memory error in Tomcat 6 (described in more detail here http://www.nabble.com/forum/ViewPost.jtp?post=12984476&framed=y http://www.nabble.com/forum/ViewPost.jtp?post=12984476&framed=y ).
After a few days analizing with Jprofiler (and learing more about memory leaks in http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded Frank Kieviet's useful blog post), I got to no conclusion about the origin of the leak. So I conducted a test. Starting from Struts2's blank application, I made a script that deployed and undeployed the application in Tomcat so it would fill the permgen space. If it all was ok, once permgen space was full it would release unlinked objects (thus increasing permgen's free space). If something went wrong, it would give me the permgen error. To my suprise, I built my application and got the Permgen space when I added: <init-param> <param-name>actionPackages</param-name> <param-value>com</param-value> </init-param> to my Struts2 filter. I had this parameter so I could annotate my actions. I tried deleting all my .com package classes. So, even with an empty package, putting the actionPackages parameter will give me a PermGen error on re-deployment and removing it will make Permgen memory be managed alright. Does anyone know why this happens and how to solve it? Can you reproduce this error? All input appreciated, this permgen error is driving me crazy! -- View this message in context: http://www.nabble.com/actionPackages-parameter-provokes-PermGen-memory-error-tf4570271.html#a13044908 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]