AWT components releasing memory
1 posts in topic
Flat View  Flat View

Posted By:   John_Baker
Posted On:   Thursday, January 3, 2002 05:54 AM

I am using Tomcat and wish to use AWT components for rendering stuff that I save off to png files. I've been looking into profiling the Tomcat server (running my web app) and I've noticed once I create an AWT component, it never gets Gc'ed. I assume this is because it grabs screen resources. I've tried component.removeNotify() but this does not help. Is there some guidelines somewhere on how I should deal with AWT components (JEditorPane's, by the way) within this type of application.


J Baker

Re: AWT components releasing memory

Posted By:   Krzysztof_Raciniewski  
Posted On:   Thursday, January 3, 2002 08:02 AM

You can try call dispose and
removeNotify on the parent frame of your component.
About | Sitemap | Contact