commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave, Tushar" <tushar.d...@employease.com>
Subject [DBCP] Connection gets blocked on 9th connection.
Date Tue, 07 Aug 2007 14:42:38 GMT
I am initializing the GeneriConnectionPool using the following
parameters

 

MaxActive=3D30

MaxIdle=3D20

MinIdle=3D20

MaxWait=3D1000

TestOnBorrow=3Dtrue

ActionWhenExhasuted =3D 2(GROW)

 

I try to test the connection pool by using the following code.

 

List<Connection> liCon =3D new ArrayList<Connection>(); for(i=3D0 ; i <
10 ; i++) {

      Connection oCon =3D oPool.getConnection();

      liCon.add(oCon);

}

 

The call to oPool.getConnection() gets blocked indefinitely when I try
to get the 9th connection.

 

Am I missing something?

Any ideas

 

Thanks

Tushar Dave

 

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message