Connection Pooling How To ?

Hi All ,

i am developing a struts based web-application with JBoss 4.0.5 as Application Server and Oracle 10g Express edition .

I am configuring my application for connection pooling .

I have tried following methods :

1. Oracle Connection Pooling following thius link http://www.lc.leidenuniv.nl/awcourse/oracle/java.920/a96654/connpoca.htm

2. Configuring Jboss's Internal Container Level Connection pooling simply creating the datasources

3. JDBC level Connection Pooling

but unluckily did not succeed in any of these method .

The application works OK with Second method but When it is being hit with 200 request/second The pool gets exhaulsted .

i am unable to decide which approach i should be using as my application can receive large no. of requests around 1000/sec ?

Please help me out ,

Tell some useful link if possible ..

Regards Jasdeep

[933 byte] By [Jasdeep.Singha] at [2007-11-27 5:07:51]
# 1

The pool can't do magic. If your database operations take ten seconds each, you get 1000 requests a second, and you have a pool size of 200, the pool will effectively empty instantly.

You need to get some measurements of how long the typical transactions last and figure out an appropriate pool size for that. If it's more than the database can handle then you're going to have to upgrade.

It's that simple.

dcmintera at 2007-7-12 10:27:07 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
Incidentally, is the pool recovering when you back off the number of requests, or does it remain empty? The latter case implies a connection leak.
dcmintera at 2007-7-12 10:27:07 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...