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