Re: WAR undeploy seems to leave some struts related classes in memory

Greg Huber <[email protected]> Sat, 22 Feb 2025 11:49:21 +0000
Newsgroups gmane.comp.jakarta.struts.devel
Message-ID <[email protected]>
The image has been removed.  Text only here.

On 22/02/2025 10:38, Ing. Andrea Vettori wrote:
> Hello,
> I’m facing an issue that can't fully understand myself. I’m using struts since year 2000 (version 6.7 at the moment) in web apps with a mix of JSP and Freemarker templates. I use Tomcat as servlet container.
> Recently I found that when an app is hot deployed, I constantly find that some non heap memory is consumed. Analyzing thread dumps I found that an application context object is left in memory and this is referenced by a struts related class and a FreeMarker related class (that I think is created by struts).
> For example in the image attached you can see three application contexts that are caused by hot deploying the app two times after the tomcat server has started.
> The “bigger” context is the one of the running app. The two smaller ones are left after the two hot deploys. If I do N hot deploys I later found the same result with N+1 contexts.
> This is consuming a lot of Metaspace at each hot deploy.
>
> Any hint on what can cause this ?
> Thanks
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:[email protected]
> For additional commands, e-mail:[email protected]