tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Thielen" <da...@windward.net>
Subject RE: db-connectin is working fine, but is it pooling?
Date Fri, 23 Sep 2005 00:31:43 GMT
I think (not sure as I am not a Tomcat expert) that you can just get 2
connections without closing either - and see that you got 2.

- dave


-----Original Message-----
From: Trond Hersløv [mailto:trond.herslov@GOTOGATE.no] 
Sent: Thursday, September 22, 2005 6:24 PM
To: Tomcat Users List
Subject: RE: db-connectin is working fine, but is it pooling?

Thanks, I'll do that, but still - how can I be sure that my pool have more
than just this one connection. Writing two servlets with endless loops,
avoiding checking the connections back would give me the answer I guess.
But why is there only one connection established to my DB server??

Is there a way to configure the pool to pre generate eg. 10 connections?

\trond


-----Original Message-----
From: Kyle [mailto:kl@attitia.com] 
Sent: 23. september 2005 02:14
To: Tomcat Users List
Subject: Re: db-connectin is working fine, but is it pooling?

Print out your Connection Object .toString() to stdout or on a page and 
you should see that it is a Pool(ed|able) Connection object.

K

Trond Hersløv wrote:

>Everything works just fine, but I'm a little bit concerned that maybe I am
generating a singel connection to the DB and not a pool of connections.
>As I run  netstat -a on the machine hosting the DB, I expected to find
>a lot of connections to port 3306, which my MySQL server listens to, but
there is only one single connection. Even when I press F5 for a long time to
refresh my IE window like a 100 times or with more windows open at the same
time there is just this one connection to be found.
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


**********************************************************************
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message