File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes DB Connections max out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "DB Connections max out" Watch "DB Connections max out" New topic

DB Connections max out

Nit Kul

Joined: Oct 26, 2009
Posts: 14
Hi I am new to DB.
I have database connections max exceeding out. I have many different nodes of server, balanced by load balancer.
I get max connection pool someitmes, which I see 32 (maxed out).

They dont get reset, even after webserver restart. Looks like they have hung in the db server after the query is sent.
Please help. Would like to know what is causing it? why are the connections not resetting after webserver restart?

Peter Johnson

Joined: May 14, 2008
Posts: 5852

Nit, welcome to Java Ranch!

Which application/web server? Once you let us know, I'll move this discussion to the forum for that server.

JBoss In Action
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

Do you always call connection.close()?

please display the code you use to open and use a JDBC connection.
I agree. Here's the link:
subject: DB Connections max out
It's not a secret anymore!