Re: Connection pooling issue on Tomcat

2014-03-28 Thread Leo Donahue
On Fri, Mar 28, 2014 at 12:31 PM, Propes, Barry L wrote: > > > -Original Message- > From: Mark Shifman [mailto:mark.shif...@yale.edu] > Sent: Friday, March 28, 2014 12:34 PM > To: Tomcat Users List > Subject: Re: Connection pooling issue on Tomcat > > ===

RE: Connection pooling issue on Tomcat

2014-03-28 Thread Propes, Barry L
-Original Message- From: Mark Shifman [mailto:mark.shif...@yale.edu] Sent: Friday, March 28, 2014 12:34 PM To: Tomcat Users List Subject: Re: Connection pooling issue on Tomcat On 03/28/2014 11:58 AM, Propes, Barry L wrote: > Hi folks, > > I'm using Tomcat 6.0.29 for a

RE: Connection pooling issue on Tomcat

2014-03-28 Thread Propes, Barry L
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, March 28, 2014 11:13 AM To: Tomcat Users List Subject: Re: Connection pooling issue on Tomcat -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Barry, On 3/28/14, 11:58 AM, Propes, Barry L

Re: Connection pooling issue on Tomcat

2014-03-28 Thread Mark Shifman
On 03/28/2014 11:58 AM, Propes, Barry L wrote: Hi folks, I'm using Tomcat 6.0.29 for an app I've had in place for years. I run the Java app I have on a Windows 2003 server for my production region, but have local builds on both my desktop and laptop, both of which are Windows XP Pro. Yes, I

Connection pooling issue on Tomcat

2014-03-28 Thread Propes, Barry L
Hi folks, I'm using Tomcat 6.0.29 for an app I've had in place for years. I run the Java app I have on a Windows 2003 server for my production region, but have local builds on both my desktop and laptop, both of which are Windows XP Pro. Yes, I do realize that the Tomcat version is old, but we'

Re: Connection pooling issue on Tomcat

2014-03-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Barry, On 3/28/14, 11:58 AM, Propes, Barry L wrote: > Hi folks, > > I'm using Tomcat 6.0.29 for an app I've had in place for years. I > run the Java app I have on a Windows 2003 server for my production > region, but have local builds on both my de

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Terence M. Bandoian
ive should have? -Original Message- From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Sent: 21 Nov 2011 16 11 To: Tomcat Users List Subject: Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp On 1:59 PM, Martin O'Shea wrote: Caused by: com.mysql.j

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Pid *
On 21 Nov 2011, at 21:25, Martin O'Shea wrote: Well, I hope I’m reading VisualVM correctly, because when I run the JMeter test first time around, I see 40 ‘connector’ threads created in VisualVM, all of which run for so long and then return to a wait state. I always forget to tell people to get

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Pid *
On 21 Nov 2011, at 20:09, Martin O'Shea wrote: > Are you able to provide any more information about what I am actually > looking for in VisualVM? Depends how you defined the Db. Did you define a global Resource in server.xml? Or perhaps in conf/context.xml? p > -

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Martin O'Shea
Well, I hope I'm reading VisualVM correctly, because when I run the JMeter test first time around, I see 40 'connector' threads created in VisualVM, all of which run for so long and then return to a wait state. And if I run the test again several times in succession, the number of connector th

FW: Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Martin O'Shea
Are you able to provide any more information about what I am actually looking for in VisualVM?

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Pid *
Tomcat > maxActive should have? > > -Original Message- > From: Terence M. Bandoian [mailto:tere...@tmbsw.com] > Sent: 21 Nov 2011 16 11 > To: Tomcat Users List > Subject: Re: Connection pooling issue with > MySQLNonTransientConnectionException and Java weba

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Pid *
On 21 Nov 2011, at 16:11, "Terence M. Bandoian" wrote: > > On 1:59 PM, Martin O'Shea wrote: >> Caused by: >> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data >> source rejected establishment of connection, message from server: "Too many >> connections" > > I'd check int

RE: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Martin O'Shea
. Bandoian [mailto:tere...@tmbsw.com] Sent: 21 Nov 2011 16 11 To: Tomcat Users List Subject: Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp On 1:59 PM, Martin O'Shea wrote: > Caused by: > com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExce

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Terence M. Bandoian
On 1:59 PM, Martin O'Shea wrote: Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections" I'd check into this. -Terence Bandoian ---

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Martin O'Shea
Usually the connection is initialised as null and then assigned inside the try block. What happens if the method above throws an error after a connection is removed from the pool? To try to answer this, the sample code provided is illustrative of my DAO classes generally. The following is

Re: Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread Pid *
On 21 Nov 2011, at 09:28, "app...@dsl.pipex.com" wrote: > Hello > > I don't think this is a Tomcat issue but I thought I would post here just in > case. > > I have a Java, JSP and MySQL application running under Apache Tomcat 6.0.26 > which I've been testing with JMeter. > What I find is that f

Connection pooling issue with MySQLNonTransientConnectionException and Java webapp

2011-11-21 Thread appy74
Hello I don't think this is a Tomcat issue but I thought I would post here just in case. I have a Java, JSP and MySQL application running under Apache Tomcat 6.0.26 which I've been testing with JMeter. What I find is that for a simple test having 10 users logging in and displaying a JSP which

Re: Tomcat 6.X and MySQL connection pooling issue

2009-10-01 Thread MartinOShea
ttp://enigmail.mozdev.org/ > > iEYEARECAAYFAkrFIHkACgkQ9CaO5/Lv0PDUcwCfW1Wz6ieZ0pEnm/p+dm9vsiVo > IFIAoIlQSxys4cHzVi+YAro3BDrV0dju > =Ojns > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat

Re: Tomcat 6.X and MySQL connection pooling issue

2009-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 10/1/2009 12:53 PM, MartinOShea wrote: > private static DataSource dataSource = null; I wouldn't recommend caching the DataSource object. This limits your ability to reconfigure the DataSource on the fly if you want to. Local JNDI look

Re: Tomcat 6.X and MySQL connection pooling issue

2009-10-01 Thread MartinOShea
--- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Tomcat-6.X-and-MySQL-connection-pooling-issue-tp25677820p25702523.html S

Re: Tomcat 6.X and MySQL connection pooling issue

2009-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 10/1/2009 3:47 AM, MartinOShea wrote: > Changing testOnBorrow = "true" has not changed the situation with the > connection pool failing -can anyone suggest anything? Are you sure you are configuring the right connection pool? Can you tu

Re: Tomcat 6.X and MySQL connection pooling issue

2009-10-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark et al, On 9/30/2009 8:33 AM, Mark Thomas wrote: > It just means that testOnBorrow does nothing if validationQuery is set to "". > For mysql "select 1" is sufficient and saves a call to now(). The Oracle > equivalent would be "select 1 from dual"

Re: Tomcat 6.X and MySQL connection pooling issue

2009-10-01 Thread MartinOShea
> return null; > } > } > catch(Exception ex) > { > logger.error("Error getting Dataset " + DatasetNo + "\n", ex); > > return null; > } > finally > { > DatabaseUtils.clos

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread MartinOShea
; >>>>> Mark >>>>> >>>>> >>>>> - >>>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>>>> For additional commands, e-mail: users-h...@tomc

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread Pid
On 30/09/2009 13:38, MartinOShea wrote: So select now() is fine. (Where "fine" is defined as "not what you were advised to use, for sound reasons that are require a longer explanation than was necessary at the time".) p Thanks. markt-2 wrote: MartinOShea wrote: Thanks for the reply

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread MartinOShea
e.org >>> For additional commands, e-mail: users-h...@tomcat.apache.org >>> >>> >>> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Tomcat-6.X-and-MySQL-connection-pooling-issue-tp25677820p25680199.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread Mark Thomas
MartinOShea wrote: > Thanks for the reply. > > Setting testOnBorrow to true is something I'll try but according to: > > http://commons.apache.org/dbcp/configuration.html > > If testOnBorrow is set to true, the validation query must be set to a > 'non-null string'. Presumably this means that the

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread MartinOShea
--- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble

Re: Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread Mark Thomas
MartinOShea wrote: > But I think what is > happening after eight hours of inactivity, is that the system is trying to > reuse a connection pool object that MySQL has closed down after its default > eight hour period. Sounds likely. > testOnBorrow = "false" Try setting this to true. Mark -

Tomcat 6.X and MySQL connection pooling issue

2009-09-30 Thread MartinOShea
taset " + DatasetNo + "\n", ex); return null; } finally { DatabaseUtils.closeResultSet(rs); DatabaseUtils.closePreparedStatement(ps); pool.freeConnection(connection); } Where class ConnectionPool_DBA is my own DBCP-based class. A

Re: Pooling Issue

2006-11-19 Thread David Smith
y review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "tyju tiui" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, November 18, 2006 10:32 PM Subject: Re: Pooling Issue I do have a firewall, but I

Re: Pooling Issue

2006-11-19 Thread Martin Gainty
and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "tyju tiui" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Saturday, November 18, 2006 10:32 PM Subject: Re: Pooling Issue I do have a firewal

Re: Pooling Issue

2006-11-18 Thread tyju tiui
(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) - Original Message From: David Smith <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Saturday, November 18, 2006 9:28:46 PM Subjec

Re: Pooling Issue

2006-11-18 Thread David Smith
Well that's a stumper. The connection refused exception implies that nothing is listening on that port or the port is blocked by a firewall. Is there any more to that exception like a root cause? Given you are using the localhost interface, I doubt this has a bearing but would you happen to

Re: Pooling Issue

2006-11-18 Thread tyju tiui
Hi David, Thank you so much for the response and good advice. I verified that I was able to connect to MySQL using the command you suggested (via port 3306). I also removed the autoReconnect parameter and moved the pooling config out to Catalina/localhost/DBTest.xml. I restarted tomcat and I'm sti

Re: Pooling Issue

2006-11-18 Thread David Smith
For starters, you might want to make a copy of your server.xml file for documentation purposes and then drop all the comments from the active one. The documentation comments are excellent, but they make the serverl.xml near impossible to read. At any rate the exception is connection refus

Pooling Issue

2006-11-18 Thread tyju tiui
I'm having problems setting up connection pooling with comcat 5.5.2.0 and MySQL 5.0.24 using mysql connector/J 5.0. I've setup / populated a test database and verified that I can login to the server/db using the specified username/password/host found in the connection string. My server.xml looks l