struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wild_oscar <>
Subject Re: actionPackages parameter provokes PermGen memory error
Date Mon, 08 Oct 2007 09:10:57 GMT

Should this be reported as a possible bug?

wild_oscar wrote:
> 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 
> ).
> After a few days analizing with Jprofiler (and learing more about memory
> leaks in 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:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message