Ramesh, There is a very interesting blog post on this topic here which may help you.
http://www.patrickpeak.com/page/patrick/20050614#your_web_app_is_leaking This was in the context of the jdbc driver being left around when if you redeploy the app from ant. After a few ant redeploys you end up with an out of memory error on tomcat becuase the jdbc driver is left around. The attached covers a method for unloading it. HTH Adrian Auckland, NZ On 7/22/05, Jesse Alexander (KBSA 21) <[EMAIL PROTECTED]> wrote: > > Hi > > how about controlling that you have dereferenced the driver as completely as > possible and then just > ask the jvm to kindly consider doing a GC right now? > > have you considered asking this question in the JDBC-forum at sun's forum > site? > http://forum.java.sun.com/forum.jspa?forumID=48 > > regards > Alexander > > ________________________________ > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 21, 2005 1:21 PM > To: [email protected] > Subject: How to remove a JDBC driver instance from the memory. > > > > > > All, > > > > This is related to JDBC 1.0. > > > > I can register a driver with class.forName("=====Driver class====="); // > type 4 driver > > > > This statement creates an instance of the specified driver class and puts in > the memory. > > > > Then I can use that driver class while getting a connection by using > DriverManager.getConnection(url,id,pw); > > > > After that I can do all DB related things. > > > > Finally I can close all DB related resources( like ResultSet, Statement and > Connection). > > > > But how will I remove/(make a null) Driver class, which is there in the > memory. > > > > I do not want to wait for GC to do this. > > > > As and when I finish my DB work, I should be in a position to remove all > from the memory. > > > > Is there any way to do this? > > > > We are not getting any reference for Driver class to my program. > > > > Can you clarify on this? > > > > I know this is not the right place to post this query. > > > > Some one can help me at least where I can post this query > > > > Thanks in advance > > > > Regards, > > Ramesh > > > > > Confidentiality Notice > > The information contained in this electronic message and any attachments to > this message are intended > for the exclusive use of the addressee(s) and may contain confidential or > privileged information. If > you are not the intended recipient, please notify the sender at Wipro or > [EMAIL PROTECTED] immediately > and destroy all copies of this message and any attachments. >

