Re: JDBC Pool exhaustion

2006-10-12 Thread David Smith
Under the covers, tomcat does use DBCP , but refractors the package name to avoid collisions with the real DBCP package. --David Mikolaj Rydzewski wrote: Christopher Schultz wrote: From your DataSource configuration, it looks like you are using the Oracle driver directly. Does that have built

Re: JDBC Pool exhaustion

2006-10-12 Thread Mikolaj Rydzewski
Mikolaj Rydzewski wrote: But, reading the config for the second time I can not find any references to dbcp classes! Just DataSource interface and jdbc driver class name. So - does this configuration uses connection pooling (how could it be?) I'll answer to my question ;-) Quoting DBCP wiki: "

Re: JDBC Pool exhaustion

2006-10-12 Thread Mikolaj Rydzewski
Christopher Schultz wrote: From your DataSource configuration, it looks like you are using the Oracle driver directly. Does that have built-in pooling? The original problem is solved, but I'm a little confused now. Posted configuration was exactly the same like the examples on Tomcat website:

Re: JDBC Pool exhaustion

2006-10-12 Thread Pascal Alberty
On 10/12/06, DE VINZELLES, Guillaume (ext.) <[EMAIL PROTECTED]> wrote: Hello, One of our connections wasn't properly closed, as you said. You fixed the problem and now everything is running fine. Great ! "Un grand classique" ;-) Pascal ---

RE: JDBC Pool exhaustion

2006-10-12 Thread DE VINZELLES, Guillaume \(ext.\)
ssage d'origine- De : Richard DeGrande [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 octobre 2006 17:58 À : Tomcat Users List Objet : Re: JDBC Pool exhaustion Martin, Isn't dbcp connection pooling ?? I think I am missing something, I am not clear on why you are advocating a s

Re: JDBC Pool exhaustion

2006-10-11 Thread Richard DeGrande
ssage - From: "Christopher Schultz" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, October 11, 2006 10:54 AM Subject: Re: JDBC Pool exhaustion - To start a new topic, e-mail: user

RE: JDBC Pool exhaustion

2006-10-11 Thread DE VINZELLES, Guillaume \(ext.\)
Objet : Re: JDBC Pool exhaustion If you have 1000 connections then you would be well advised to use connection pooling more specifically you need to separate the activities of settingup a connection from getting the connection you also need to separate the activities of freeing the conne

RE: JDBC Pool exhaustion

2006-10-11 Thread DE VINZELLES, Guillaume \(ext.\)
0 18 21 64 -Message d'origine- De : Christopher Schultz [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 octobre 2006 16:55 À : Tomcat Users List Objet : Re: JDBC Pool exhaustion Guillaume, > For Christopher and Alberty, here is an example of how we connect to the > database. &g

Re: JDBC Pool exhaustion

2006-10-11 Thread Martin Gainty
Message - From: "Christopher Schultz" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, October 11, 2006 10:54 AM Subject: Re: JDBC Pool exhaustion

Re: JDBC Pool exhaustion

2006-10-11 Thread Davide Romanini
Il giorno mer, 11/10/2006 alle 16.02 +0200, DE VINZELLES, Guillaume (ext.) ha scritto: > Hello there, > > We are running a Tomcat 5.5.17 on a Sun Solaris system (SunFire V240) with a > Sun JVM 1.5, and we are facing unavoidable JDBC pool exhaustions. We are > using an Oracle 9i database. > > He

Re: JDBC Pool exhaustion

2006-10-11 Thread Pascal Alberty
Seems to be good except: finally { try { if (result != null) { result.close(); result = null; } if (oCmd != null) { oCmd.close(); oCmd = null;

Re: JDBC Pool exhaustion

2006-10-11 Thread Christopher Schultz
Guillaume, > For Christopher and Alberty, here is an example of how we connect to the > database. > I'm quite sure we are using the JDBC pool. From your DataSource configuration, it looks like you are using the Oracle driver directly. Does that have built-in pooling? If not, it looks like you m

RE: JDBC Pool exhaustion

2006-10-11 Thread DE VINZELLES, Guillaume \(ext.\)
JDBC Pool exhaustion DE VINZELLES, Guillaume (ext.) wrote: > finally { > try { > if (result != null) { > result.close(); > result = null; > } > if (oCmd != null) { >

Re: JDBC Pool exhaustion

2006-10-11 Thread Mikolaj Rydzewski
DE VINZELLES, Guillaume (ext.) wrote: finally { try { if (result != null) { result.close(); result = null; } if (oCmd != null) { oCmd.close(); oC

RE: JDBC Pool exhaustion

2006-10-11 Thread DE VINZELLES, Guillaume \(ext.\)
} } Guillaume de Vinzelles DSI/PFS Neuf Cegetel Altran Technologies [EMAIL PROTECTED] 01 70 18 21 64 -Message d'origine- De : Christopher Schultz [mailto:[EMAIL PROTECTED] Envoyé : mercredi 11 octobre 2006 16:20 À : Tomcat Users List Objet : Re: JDBC Pool exhaustion G

Re: JDBC Pool exhaustion

2006-10-11 Thread Pascal Alberty
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Pascal Alberty Envoyé: mercredi 11 octobre 2006 16:10 À: Tomcat Users List Objet: Re: JDBC Pool exhaustion Check your code to unclosed connections (and statments) first ! On 10/11/06, DE VINZELLES, Guillaume (ext.) <[EMAIL PROTECTED]>

Re: JDBC Pool exhaustion

2006-10-11 Thread Christopher Schultz
Guillaume, > type="javax.sql.DataSource" > driverClassName="oracle.jdbc.driver.OracleDriver" > > The Tomcat manager shows around 1000 sessions on the server, which > seems to be pertinent. What is your connection allocation strategy? Meaning: do you allocate a Connection object to each session

Re: JDBC Pool exhaustion

2006-10-11 Thread Martin Gainty
ELLES, Guillaume (ext.)" <[EMAIL PROTECTED]> To: Sent: Wednesday, October 11, 2006 10:02 AM Subject: JDBC Pool exhaustion Hello there, We are running a Tomcat 5.5.17 on a Sun Solaris system (SunFire V240) with a Sun JVM 1.5, and we are facing unavoidable JDBC pool exhaustions.

RE: JDBC Pool exhaustion

2006-10-11 Thread DE VINZELLES, Guillaume \(ext.\)
D] [mailto:[EMAIL PROTECTED] De la part de Pascal Alberty Envoyé : mercredi 11 octobre 2006 16:10 À : Tomcat Users List Objet : Re: JDBC Pool exhaustion Check your code to unclosed connections (and statments) first ! On 10/11/06, DE VINZELLES, Guillaume (ext.) <[EMAIL PROTECTED]> wrote: >

Re: JDBC Pool exhaustion

2006-10-11 Thread Pascal Alberty
Check your code to unclosed connections (and statments) first ! On 10/11/06, DE VINZELLES, Guillaume (ext.) <[EMAIL PROTECTED]> wrote: Hello there, We are running a Tomcat 5.5.17 on a Sun Solaris system (SunFire V240) with a Sun JVM 1.5, and we are facing unavoidable JDBC pool exhaustions. We

JDBC Pool exhaustion

2006-10-11 Thread DE VINZELLES, Guillaume \(ext.\)
Hello there, We are running a Tomcat 5.5.17 on a Sun Solaris system (SunFire V240) with a Sun JVM 1.5, and we are facing unavoidable JDBC pool exhaustions. We are using an Oracle 9i database. Here is the JDBC entry from our server.xml: The Tomcat manager shows around 1000 sessions on the ser