Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-05 Thread Terence M. Bandoian
On 1:59 PM, Terence M. Bandoian wrote: On 1:59 PM, Pid wrote: If you define the DataSource in GlobalNamingResources the pool will be started and stopped with the Tomcat lifecycle. Applications have their own lifecycle inside Tomcat, they are started after Tomcat (obviously) and stopped befor

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-05 Thread Terence M. Bandoian
On 1:59 PM, Pid wrote: If you define the DataSource in GlobalNamingResources the pool will be started and stopped with the Tomcat lifecycle. Applications have their own lifecycle inside Tomcat, they are started after Tomcat (obviously) and stopped before Tomcat stops (also obviously). This is

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-05 Thread Pid
data source myself? How? > If all what I describe is reasonable this seems to me like a "racing" > condition. How should I mediate this? Maybe the H2 devs will fix the classloader problem. p > Thank you for your time. > > > >

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-05 Thread Mark Thomas
On 04/04/2012 21:59, Hermes Flying wrote: > Thank you for your explanation. I will take this to H2 but I have one > more question on your comment: > >>> Nope. It is a memory leak in the JDBC driver which is why Tomcat >>> is reporting it. When a web application shuts down, nothing >>> should be re

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
now this? I will try it and let you know From: Filip Hanik Mailing Lists To: Cc: Tomcat Users List Sent: Wednesday, April 4, 2012 8:03 PM Subject: Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks The real

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
Tomcat Users List Sent: Wednesday, April 4, 2012 8:12 PM Subject: Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks On 04/04/2012 17:14, Hermes Flying wrote: > Hi Mark,thank you for your reply. 2 questions related your mail 1)I > don't understan

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Mark Thomas
On 04/04/2012 17:14, Hermes Flying wrote: > Hi Mark,thank you for your reply. 2 questions related your mail 1)I > don't understand what you are saying here: "but as of 7.0.12 yo an > set the closeMethod for a resource that should be the name of a zero > atg method to call to shut down the resour

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Filip Hanik Mailing Lists
riginal Message - > From: "Hermes Flying" > To: "Filip Hanik Mailing Lists" , "Tomcat Users List" > > Sent: Wednesday, April 4, 2012 10:56:10 AM > Subject: Re: Discrepancy between Tomcat's connection pool and tomcat's report > on memory lea

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks no, that would happen if you set maxIdle=0, not minIdle - Original Message - > From: "Hermes Flying" > To: "Tomcat Users List" > Sent: Wednesday, April 4, 2012 10:45:2

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Filip Hanik Mailing Lists
no, that would happen if you set maxIdle=0, not minIdle - Original Message - > From: "Hermes Flying" > To: "Tomcat Users List" > Sent: Wednesday, April 4, 2012 10:45:24 AM > Subject: Re: Discrepancy between Tomcat's connection pool and tomcat's

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
ubject: Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks just set minIdle=0 and enable the eviction process to take care of it. Filip - Original Message - > From: "Hermes Flying" > To: "Daniel Mikusa" > Cc: users@t

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Filip Hanik Mailing Lists
down. >   > Is this scenario as I describe it, wrong? > Should I somehow have configured the datasource to be "associated" > with my web application instead of a generic data source? Why? > Should I have shut the data source myself? How? > If all what I describe is

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
like a "racing" condition. How should I mediate this? Thank you for your time From: Mark Thomas To: Tomcat Users List Sent: Wednesday, April 4, 2012 6:42 PM Subject: Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks On 04/04

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
urce myself? How? If all what I describe is reasonable this seems to me like a "racing" condition. How should I mediate this? Thank you for your time.   ____________ From: Daniel Mikusa To: Hermes Flying Sent: Wednesday, April 4, 2012 5:14 PM Subject: Re: Discrepancy between Tomcat's conn

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Mark Thomas
On 04/04/2012 13:54, Hermes Flying wrote: > Hi Pid, > > This is the configuration The following entry is in server.xml > > type="javax.sql.DataSource" driverClassName="org.h2.Driver" > url="jdbc:h2:file:/opt/en/repos/tomcat/webapps/GeneralApplication/db/internaldatabase;SCHEMA=genericschema" >

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
between Tomcat's connection pool and tomcat's report on memory leaks On 04/04/2012 13:05, Hermes Flying wrote: > Hi, > > I am using Tomcat 7.0.25 in a Linux machine > > I am using Tomcat's connection pool > (org.apache.tomcat.dbcp.dbcp.BasicDataSource). As da

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks - Original Message - > Hi, > > I am using Tomcat 7.0.25 in a Linux machine > > I am using Tomcat's connection pool > (org.apache.tomcat.dbcp.dbcp.BasicDataSource). As database I

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Pid
On 04/04/2012 13:05, Hermes Flying wrote: > Hi, > > I am using Tomcat 7.0.25 in a Linux machine > > I am using Tomcat's connection pool > (org.apache.tomcat.dbcp.dbcp.BasicDataSource). As database I am using H2 as a > file database. > All is ok, but I have the following problem. > On shutdown o

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Daniel Mikusa
- Original Message - > Hi, > > I am using Tomcat 7.0.25 in a Linux machine > > I am using Tomcat's connection pool > (org.apache.tomcat.dbcp.dbcp.BasicDataSource). As database I am > using H2 as a file database. Where are you defining the connection pool? Can you include your configur

Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Hermes Flying
Hi, I am using Tomcat 7.0.25 in a Linux machine I am using Tomcat's connection pool (org.apache.tomcat.dbcp.dbcp.BasicDataSource). As database I am using H2 as a file database. All is ok, but I have the following problem. On shutdown of Tomcat I see in catalina.out: SEVERE: The web applicati