File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB Connections max out" Watch "DB Connections max out" New topic
Author

DB Connections max out

Nit Kul
Greenhorn

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?

N
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

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: http://aspose.com/file-tools
 
subject: DB Connections max out