Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Commons dbcp pooling problems...

 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pooling does not seem to be working, every request to specific url executes 5 queries and opens 5 connections and leaves them open once 50 connections are open ( maxActive setting ). I get timeout error here are my settings see if there is any thing wrong. ( Followed jakarta website ):
( Tomcat / MySQL )


From what I have read the above code should work, but it doesn't please help...
[ November 08, 2004: Message edited by: Kerry Wilson ]
 
Luis F Garcia
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kerry,

I've had the same problem with commons dbcp, and spent some time reviewing my code and config files. Somehow through google found that it was a bug within some version of commons dbcp. This could be your case.

As soon as I replaced the buggy jar with some older one, everything worked just fine.

Cheers !!

Luis F.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic