Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JDBC and the fly likes DB Connections max out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
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: 5812

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.
It is sorta covered in the JavaRanch Style Guide.
subject: DB Connections max out
Similar Threads
weblogic server crash
tomcat suddenly stopped working for half an your without any error in log
OC4J - Connection issues.. Very important
NX:Client crashed cause deadlock in LockManager