tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat thread pool question
Date Wed, 10 Dec 2008 22:15:39 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ped,

ped wrote:
> If I execute the loop N-1 times, I have no problems - I can execute my loop
> over and over. I can verify that I am not leaking connections (I have a
> monitor thread that displays the number of active connections).

I'm probably joining this thread very late, but if you set your
connection pool size to 1 (that is, a single connection), can you still
execute any tests?

Just because you aren't leaking connections doesn't mean that there's no
potential for deadlock. We run all our development servers with
maxActive=1 to catch just such potential deadlocks: if a single thread
borrows two connections from the connection pool (instead of more
correctly using the same one for all transactions), you can deadlock
your app.

Just a thought.

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

iEYEARECAAYFAklAP4sACgkQ9CaO5/Lv0PDdAwCeImZkU0CiroF82SZR0bFLjLIF
angAn0Wlchlp1se5ywh1fLw8FTxBiEL+
=82bg
-----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