> -----Original Message----- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Thursday, November 11, 2010 02:55 PM > To: Tomcat Users List > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > > From: Brian [mailto:bbprefix-m...@yahoo.com] > Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses? > > > Yes, in a Finally block. This is what I do: > > I presume you mean you call your closeRsStmt() method in a finally block, since > there certainly aren't any finally clauses in what you published.
Oh, yes, I forgot to clarify that. I call that method (that I showed in my last email) from the "finally" block that is present after all my pieces of code that use SQL. > Your mechanism is a bit suspect, since closing any outer components depends on > the retrieval of the outer from an inner. If that fails for any reason, you've left > things active. You know what? You are right! I will check my logic again. Maybe I should start putting some messages in the log, inside the catch blocks that are empty. Maybe you are right, and those pieces of code are failing, but my "catch" block doesn't do anything about it, not even leaving something in the log. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org