tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hole" <andremailingl...@gmail.com>
Subject Re: Connection pooling
Date Fri, 11 Jan 2008 14:33:20 GMT
Every db execution creates a new session.
Each session dropped correctly after db execution.
Is it supposed I see 5 (new) connections to database after tomcat restart?

Thanks

On Jan 11, 2008 2:24 PM, Caldarale, Charles R
<Chuck.Caldarale@unisys.com> wrote:
> > From: Andrew Hole [mailto:andremailinglist@gmail.com]
> > Subject: Connection pooling
> >
> > The following configuration was not supposed to be created 5
> > connections at first get connection execution?
>
> Not quite sure how to parse the above sentence, but the config should
> have created five connections at initialization.
>
> > My application with the following configuration creates
> > always a new session in the database for each invocation,
> > which is not to take advantage of pooling.
>
> Possibly because your webapp is not closing the connections, thereby not
> allowing them to return to the pool:
> http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h
> tml#Preventing%20dB%20connection%20pool%20leaks
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message