tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: How to solve "To prevent a memory leak"
Date Thu, 16 Sep 2010 18:38:57 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark,

On 9/16/2010 1:09 PM, Mark Eggers wrote:
> As another person said, make sure you have a recently updated MySQL driver. I 
> believe
> anything >= 5.1.11 solves a threading issue that was reported on their (MySQL's) 
> bug
> tracking database.

NB: I believe the issue you are referencing is the creation of a
statement cancellation timer thread that is unstoppable (as far as I
have been able to get).

The issue caught by Tomcat "leak-prevention" code was that the JDBC
driver was registered but not unregistered.

I believe you can use the non-registering version of the driver if the
connection pool knows that you are definitely going to use a specific
driver for creating the JDBC connections. I haven't done this myself,
though.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkySZEEACgkQ9CaO5/Lv0PAYIwCgpyZzZjTakgGd/N+8WGQyLkG2
i4cAn2bf1Tu2pdE8ul3hh2czV1MCNvxc
=qFiL
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message