Re: Debugging my Connector/J based Tomcat Servlet
Niklas Saers <[email protected]> Fri, 10 Jul 2009 15:19:13 +0200
| Newsgroups | gmane.comp.db.mysql.java |
|---|---|
| Message-ID | <[email protected]> |
On Jul 10, 2009, at 11:04 AM, Ronald Klop wrote: > This is a neat tool. > http://www.eclipse.org/mat/ Thanks for the tip about mat, using that I got a better understanding of my memory use. The Servlet has a Retained Heap of 6,811,840. Of this, 6,811,672 come from the private java.sql.Connection variable 'con'. Is there anything I need to do to regularly flush out this connection? As noted, it has an awful lot of Fields, Statements, ResultSets etc laying around that have been used and should be flushed. Cheers Nik