Subject How to get connections count?
Author wegorkie

I use Firebird with Tomcat 5 and get connections by

I have a serious problem, that after some steps getConnection() hangs
in one point in my app. I know that it can behave like that when I
forget closing connections so I close them every time.

But the problem exist and is repeatable. I can log in my app exactly 5
times, on the sixth try it hangs. Maybe I forgot to close connection
somewhere, how can I check it?
Is it possible to see how many connections are in the memory, even by
debugging into Jaybird sources?

Or maybe there can be other reasons my getConnection() hangs?
Especially: should I close Statement after every createStatement()?