I solved this memory leak problem.  It ended up being the 3rd-party graphing
component.  When I upgraded to their latest version the problem was fixed.

-CMcFarland

> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of cmcfarland
> Sent: Wednesday, January 10, 2001 10:10 AM
> To: [EMAIL PROTECTED]
> Subject: memory leak problem w/ graph image
>
>
> All,
>
> In my Tomcat-run (standalone, version 3.1) web application, the user can
> request a static GIF image representation of a graph which I build
> dynamically on the server and send back to the user via the
> HttpServletResponse.getOutputStream().  For your reference, I use the
> technique described at:
>
> www.sitraka.com/software/support/search/JCLChart/pr/jcl_chart_pr_27.html
>
> This all works great except that the memory used to create a graph and add
> it to a Frame is never released (I actually have not verified whether the
> memory leak is the graph Frame, or if it has something to do with encoding
> to the response output stream).  Every subsequent request for a new graph
> image builds Tomcat's memory usage up in huge chunks until the webserver
> fails because it has run out of memory for compiling.  I've tried
> de-referencing object's, removing listeners, etc. everywhere I can and it
> does not fix the problem.
>
> Do you think upgrading to Tomcat 3.2 will help this, and does anyone have
> any suggestions about how I can fix this memory leak?
>
> Thanks much!
> Chris McFarland
>
> ==================================================================
> =========
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to