<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-28821</id>
	<title>Nabble - c3p0</title>
	<updated>2009-12-10T04:31:32Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/c3p0-f28821.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/c3p0-f28821.html" />
	<subtitle type="html">&lt;a href=&quot;http://sourceforge.net/projects/c3p0/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0&lt;/a&gt;&amp;nbsp;is an easy-to-use library for augmenting traditional (DriverManager-based) JDBC drivers with JNDI-bindable DataSources, including DataSources that implement Connection and Statement Pooling, as described by the jdbc3 spec and jdbc2 std extension</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26726548</id>
	<title>Getting NullPointerException while trying to aquire resources</title>
	<published>2009-12-10T04:31:32Z</published>
	<updated>2009-12-10T04:31:32Z</updated>
	<author>
		<name>Pankaj Gupta-9</name>
	</author>
	<content type="html">&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Hi,&lt;/span&gt;&lt;br style=&quot;color: rgb(0, 0, 153);&quot;&gt;&lt;br style=&quot;color: rgb(0, 0, 153);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;I am using c3p0 for connection pooling postgres 7.3 DB connections. The connections are obtained from different java processes and use the same c3p0 wrapper library. The DB instance is same for all processes with same username/ password. Following is the configuration:&lt;/span&gt;&lt;br style=&quot;color: rgb(0, 0, 153);&quot;&gt;
&lt;br&gt;checkoutTimeout = 300000&lt;br&gt;debugUnreturnedConnectionStackTraces = true&lt;br&gt;maxIdleTime = 10&lt;br&gt;unreturnedConnectionTimeout = 15&lt;br&gt;driverClass = com.mysql.jdbc.Driver&lt;br&gt;jdbcUrl = jdbc:postgresql://&lt;a href=&quot;http://192.168.12.20:5432/vnet_data_vnet&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;192.168.12.20:5432/vnet_data_vnet&lt;/a&gt;&lt;br&gt;
user = vnet&lt;br&gt;password = vnet&lt;br&gt;maxPoolSize= 50&lt;br&gt;maxStatements = 1000&lt;br&gt;&lt;br&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;The problem is that after a while the processes are started I start getting the following error:&lt;/span&gt;&lt;br style=&quot;color: rgb(0, 0, 153);&quot;&gt;
&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Please suggest how it can be resolved.&lt;/span&gt;&lt;br style=&quot;color: rgb(0, 0, 153);&quot;&gt;&lt;br&gt;2009-12-10 17:18:08,936 DEBUG [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] resourcepool.BasicResourcePool     - decremented pending_acquires: 0&lt;br&gt;
2009-12-10 17:18:08,936 DEBUG [RMI TCP Connection(2)-192.168.12.20] dbConnection.DbConnectionPool     - looking for connection pool type:0&lt;br&gt;2009-12-10 17:18:08,945 DEBUG [RMI TCP Connection(2)-192.168.12.20] resourcepool.BasicResourcePool     - incremented pending_acquires: 1&lt;br&gt;
2009-12-10 17:18:08,945 DEBUG [RMI TCP Connection(2)-192.168.12.20] resourcepool.BasicResourcePool     - incremented pending_acquires: 2&lt;br&gt;2009-12-10 17:18:08,945 DEBUG [RMI TCP Connection(2)-192.168.12.20] resourcepool.BasicResourcePool     - incremented pending_acquires: 3&lt;br&gt;
2009-12-10 17:18:08,945 DEBUG [RMI TCP Connection(2)-192.168.12.20] resourcepool.BasicResourcePool     - com.mchange.v2.resourcepool.BasicResourcePool@4be2cc config: [start -&amp;gt; 3; min -&amp;gt; 3; max -&amp;gt; 15; inc -&amp;gt; 3; num_acq_attempts -&amp;gt; 30; acq_attempt_delay -&amp;gt; 1000; check_idle_resources_delay -&amp;gt; 0; mox_resource_age -&amp;gt; 0; max_idle_time -&amp;gt; 0; excess_max_idle_time -&amp;gt; 0; destroy_unreturned_resc_time -&amp;gt; 0; expiration_enforcement_delay -&amp;gt; 0; break_on_acquisition_failure -&amp;gt; false; debug_store_checkout_exceptions -&amp;gt; false]&lt;br&gt;
2009-12-10 17:18:08,945 DEBUG [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] resourcepool.BasicResourcePool     - An exception occurred while acquiring a poolable resource. Will retry.&lt;br&gt;java.lang.NullPointerException&lt;br&gt;
    at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)&lt;br&gt;    at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)&lt;br&gt;    at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)&lt;br&gt;
    at java.sql.DriverManager.getDriver(DriverManager.java:253)&lt;br&gt;    at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:223)&lt;br&gt;    at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)&lt;br&gt;
    at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)&lt;br&gt;    at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)&lt;br&gt;
    at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)&lt;br&gt;    at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)&lt;br&gt;
    at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)&lt;br&gt;    at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)&lt;br&gt;    at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)&lt;br&gt;
&lt;br&gt;&lt;br style=&quot;color: rgb(0, 0, 153);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;regards,&lt;/span&gt;&lt;br style=&quot;color: rgb(0, 0, 153);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 153);&quot;&gt;Pankaj&lt;/span&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26726548&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Getting-NullPointerException-while-trying-to-aquire-resources-tp26726548p26726548.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26720296</id>
	<title>Re: C3P0</title>
	<published>2009-12-09T16:34:57Z</published>
	<updated>2009-12-09T16:34:57Z</updated>
	<author>
		<name>Steve Waldman</name>
	</author>
	<content type="html">hey,
&lt;br&gt;&lt;br&gt;thanks for the heads-up on mchange.com. 'twas up, but only as www.mchange.com 
&lt;br&gt;... i switched hosts and forgot to configure the no-www url. it should &amp;nbsp;
&lt;br&gt;work both ways now.
&lt;br&gt;&lt;br&gt;status is i've been a lame maintainer. i started a grad program a &amp;nbsp;
&lt;br&gt;couple of years ago that pulled me away from doing so much coding, and &amp;nbsp;
&lt;br&gt;c3p0 maintenance suffered dramatically. i like coding more than most &amp;nbsp;
&lt;br&gt;things i'm supposed to do, so as my coursework peters away, i'm &amp;nbsp;
&lt;br&gt;redefining my research to be more &amp; more code-centric. so, there's a &amp;nbsp;
&lt;br&gt;pretty good chance (but no promises unfortunately) that c3p0 &amp;nbsp;
&lt;br&gt;maintenance and support will improve. there's need for a pretty &amp;nbsp;
&lt;br&gt;substantial revision, both to pick up full jdbc4 support and to &amp;nbsp;
&lt;br&gt;resolve pent up issues. i'm hoping to get to it soon.
&lt;br&gt;&lt;br&gt;i've also found a revision control source i can live with in &amp;nbsp;
&lt;br&gt;mercurial, so when i do resume active work, for the first time i think &amp;nbsp;
&lt;br&gt;i'll be able to offer continuous access to the development repository &amp;nbsp;
&lt;br&gt;and maybe invite a more collaborative / less fragile style of &amp;nbsp;
&lt;br&gt;development.
&lt;br&gt;&lt;br&gt;but, of course, everything is vapor 'til it's done, and past &amp;nbsp;
&lt;br&gt;performance since 2007 suggests a bit of skepticism is reasonable.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; smiles,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; steve
&lt;br&gt;&lt;br&gt;p.s. re version numbers, c3p0 is pretty mature, i think, even left &amp;nbsp;
&lt;br&gt;alone for a couple of years it seems to be widely deployed. but i may &amp;nbsp;
&lt;br&gt;never call it 1.0, and will probably always call it beta. i'm &amp;nbsp;
&lt;br&gt;gratified that c3p0 has been a successful library, but i'm not in any &amp;nbsp;
&lt;br&gt;kind of game for market share, and i'd rather my user base make &amp;nbsp;
&lt;br&gt;independent evaluations of the software than rely upon any claim of &amp;nbsp;
&lt;br&gt;mine that it is solid. (during development, i do go through a long &amp;nbsp;
&lt;br&gt;series of revisions that are explicitly named &amp;quot;pre&amp;quot; or &amp;quot;dev&amp;quot;, so users &amp;nbsp;
&lt;br&gt;can distinguish between bleeding edge snapshots and minor revisions to &amp;nbsp;
&lt;br&gt;basically mature branches.)
&lt;br&gt;&lt;br&gt;p.p.s. rereading my previous note, i should have written... &amp;quot;If you &amp;nbsp;
&lt;br&gt;test, _on_checkout_, you needn't use idleConnectionTestPeriod at all, &amp;nbsp;
&lt;br&gt;as Connections will automatically be closed if they fail a test.&amp;quot; If &amp;nbsp;
&lt;br&gt;you are testing on checkin, you'll still want tests of idle &amp;nbsp;
&lt;br&gt;connections to ensure that Connections that go bad while idle in the &amp;nbsp;
&lt;br&gt;pool are reaped.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 9, 2009, at 2:36 PM, liam christopher wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Grea answers, thank you. Having a higher acquireIncrement makes a &amp;nbsp;
&lt;br&gt;&amp;gt; lot more sense the way you explained it than in the actual docs. &amp;nbsp;
&lt;br&gt;&amp;gt; Also I can't use a testTable since most of the connections i am &amp;nbsp;
&lt;br&gt;&amp;gt; using are read-only, but adjusting the timeouts seems like this &amp;nbsp;
&lt;br&gt;&amp;gt; should fix the issue.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am going to give these a shot today.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Also, what is the status of development on c3p0? It seems like not &amp;nbsp;
&lt;br&gt;&amp;gt; much has happened with dbcp or c3p0 in the last couple years, and &amp;nbsp;
&lt;br&gt;&amp;gt; mchange.com seems defunct (though I can get to the old docs through &amp;nbsp;
&lt;br&gt;&amp;gt; google). Is this being hosted or developed anywhere? Are there any &amp;nbsp;
&lt;br&gt;&amp;gt; long-standing bugs or reasons why it was never pushed to a 1.0 &amp;nbsp;
&lt;br&gt;&amp;gt; release?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; -+ liam +-
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Sat, Dec 5, 2009 at 6:51 PM, Steve Waldman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26720296&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;swaldman@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i'm sorry for the much delayed response.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; you should read this, if you haven't already:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.mchange.com/projects/c3p0/#configuring_connection_testing&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mchange.com/projects/c3p0/#configuring_connection_testing&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; rereading, it's not as clear as it should be...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; basically...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) decide how you want Connections to be tested. on mysql and many
&lt;br&gt;&amp;gt; other databases, you can use a preferredTestQuery of SELECT 1. If you
&lt;br&gt;&amp;gt; want an actual query against an empty table, it's convenient to define
&lt;br&gt;&amp;gt; an automaticTestTable. The defaukt Connection test (if you do none of
&lt;br&gt;&amp;gt; that) is slow.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2) decide on a Connection testing regime. testConnectionOnCheckout is
&lt;br&gt;&amp;gt; safest, but adds overhead to client queries. Setting a short
&lt;br&gt;&amp;gt; idleConnectionTestPeriod and testingConnectionOnCheckin leaves open a
&lt;br&gt;&amp;gt; small window for a Connection failure to go unnoticed, but in practice
&lt;br&gt;&amp;gt; is very reliable.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 3) hibernate's c3p0.timeout maps to maxIdleTime. maxIdleTime should be
&lt;br&gt;&amp;gt; much longer than idleConnectionTestPeriod. maxIdleTime causes
&lt;br&gt;&amp;gt; Connections to be closed (and perhaps reacquired from the database,
&lt;br&gt;&amp;gt; depending on whether the min # of Connections remain and what the load
&lt;br&gt;&amp;gt; is like). if maxIdleTime is shorter than idleConnectionTestPeriod,
&lt;br&gt;&amp;gt; Connections will never be tested, just recycled. If you test, you
&lt;br&gt;&amp;gt; needn't use idleConnectionTestPeriod at all, as Connections will
&lt;br&gt;&amp;gt; automatically be closed if they fail a test.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; smiles,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Steve
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 25, 2009, at 6:23 AM, rafael liu wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hey, Steve
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Sorry to bother, but I couldn't find this info anywhere on the net..
&lt;br&gt;&amp;gt; &amp;gt; The thing is I'm using C3P0 with Hibernate to handle conection
&lt;br&gt;&amp;gt; &amp;gt; pooling but I got some IO Exceptions (Connection reset). I've found
&lt;br&gt;&amp;gt; &amp;gt; some references advicing the use of timeout and idle_test_period,
&lt;br&gt;&amp;gt; &amp;gt; something about idle_test_period being less than timeout. It says
&lt;br&gt;&amp;gt; &amp;gt; that timeout can expire a connection but does not clean it, because
&lt;br&gt;&amp;gt; &amp;gt; idle_test_period didn't run yet. Is that right?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Congrats for this cool framework!
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Cheers,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; Rafael Liu
&lt;br&gt;&amp;gt; &amp;gt; +55 61 9608-7722
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://rafaelliu.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://rafaelliu.net&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; c3p0-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26720296&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26720296&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C3P0-tp26599997p26720296.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26716323</id>
	<title>Re: C3P0</title>
	<published>2009-12-09T11:36:30Z</published>
	<updated>2009-12-09T11:36:30Z</updated>
	<author>
		<name>liam christopher</name>
	</author>
	<content type="html">Grea answers, thank you. Having a higher acquireIncrement makes a lot more sense the way you explained it than in the actual docs. Also I can&amp;#39;t use a testTable since most of the connections i am using are read-only, but adjusting the timeouts seems like this should fix the issue.&lt;br&gt;

&lt;br&gt;I am going to give these a shot today.&lt;br&gt;&lt;br&gt;Also, what is the status of development on c3p0? It seems like not much has happened with dbcp or c3p0 in the last couple years, and &lt;a href=&quot;http://mchange.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mchange.com&lt;/a&gt; seems defunct (though I can get to the old docs through google). Is this being hosted or developed anywhere? Are there any long-standing bugs or reasons why it was never pushed to a 1.0 release?&lt;br&gt;

&lt;br&gt;Thanks,&lt;br&gt;-+ liam +-&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Dec 5, 2009 at 6:51 PM, Steve Waldman &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26716323&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;swaldman@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

hi,&lt;br&gt;
&lt;br&gt;
i&amp;#39;m sorry for the much delayed response.&lt;br&gt;
&lt;br&gt;
you should read this, if you haven&amp;#39;t already:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mchange.com/projects/c3p0/#configuring_connection_testing&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.mchange.com/projects/c3p0/#configuring_connection_testing&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
rereading, it&amp;#39;s not as clear as it should be...&lt;br&gt;
&lt;br&gt;
basically...&lt;br&gt;
&lt;br&gt;
1) decide how you want Connections to be tested. on mysql and many&lt;br&gt;
other databases, you can use a preferredTestQuery of SELECT 1. If you&lt;br&gt;
want an actual query against an empty table, it&amp;#39;s convenient to define&lt;br&gt;
an automaticTestTable. The defaukt Connection test (if you do none of&lt;br&gt;
that) is slow.&lt;br&gt;
&lt;br&gt;
2) decide on a Connection testing regime. testConnectionOnCheckout is&lt;br&gt;
safest, but adds overhead to client queries. Setting a short&lt;br&gt;
idleConnectionTestPeriod and testingConnectionOnCheckin leaves open a&lt;br&gt;
small window for a Connection failure to go unnoticed, but in practice&lt;br&gt;
is very reliable.&lt;br&gt;
&lt;br&gt;
3) hibernate&amp;#39;s c3p0.timeout maps to maxIdleTime. maxIdleTime should be&lt;br&gt;
much longer than idleConnectionTestPeriod. maxIdleTime causes&lt;br&gt;
Connections to be closed (and perhaps reacquired from the database,&lt;br&gt;
depending on whether the min # of Connections remain and what the load&lt;br&gt;
is like). if maxIdleTime is shorter than idleConnectionTestPeriod,&lt;br&gt;
Connections will never be tested, just recycled. If you test, you&lt;br&gt;
needn&amp;#39;t use idleConnectionTestPeriod at all, as Connections will&lt;br&gt;
automatically be closed if they fail a test.&lt;br&gt;
&lt;br&gt;
     smiles,&lt;br&gt;
         Steve&lt;br&gt;
&lt;br&gt;
On Nov 25, 2009, at 6:23 AM, rafael liu wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; Hey, Steve&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Sorry to bother, but I couldn&amp;#39;t find this info anywhere on the net..&lt;br&gt;
&amp;gt; The thing is I&amp;#39;m using C3P0 with Hibernate to handle conection&lt;br&gt;
&amp;gt; pooling but I got some IO Exceptions (Connection reset). I&amp;#39;ve found&lt;br&gt;
&amp;gt; some references advicing the use of timeout and idle_test_period,&lt;br&gt;
&amp;gt; something about idle_test_period being less than timeout. It says&lt;br&gt;
&amp;gt; that timeout can expire a connection but does not clean it, because&lt;br&gt;
&amp;gt; idle_test_period didn&amp;#39;t run yet. Is that right?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Congrats for this cool framework!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Cheers,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; Rafael Liu&lt;br&gt;
&amp;gt; +55 61 9608-7722&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://rafaelliu.net&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://rafaelliu.net&lt;/a&gt;&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
------------------------------------------------------------------------------&lt;br&gt;
Join us December 9, 2009 for the Red Hat Virtual Experience,&lt;br&gt;
a free event focused on virtualization and cloud computing.&lt;br&gt;
Attend in-depth sessions from your desk. Your couch. Anywhere.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
c3p0-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26716323&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26716323&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C3P0-tp26599997p26716323.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26661769</id>
	<title>Re: C3P0</title>
	<published>2009-12-05T18:51:06Z</published>
	<updated>2009-12-05T18:51:06Z</updated>
	<author>
		<name>Steve Waldman</name>
	</author>
	<content type="html">hi,
&lt;br&gt;&lt;br&gt;i'm sorry for the much delayed response.
&lt;br&gt;&lt;br&gt;you should read this, if you haven't already:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.mchange.com/projects/c3p0/#configuring_connection_testing&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mchange.com/projects/c3p0/#configuring_connection_testing&lt;/a&gt;&lt;br&gt;&lt;br&gt;rereading, it's not as clear as it should be...
&lt;br&gt;&lt;br&gt;basically...
&lt;br&gt;&lt;br&gt;1) decide how you want Connections to be tested. on mysql and many &amp;nbsp;
&lt;br&gt;other databases, you can use a preferredTestQuery of SELECT 1. If you &amp;nbsp;
&lt;br&gt;want an actual query against an empty table, it's convenient to define &amp;nbsp;
&lt;br&gt;an automaticTestTable. The defaukt Connection test (if you do none of &amp;nbsp;
&lt;br&gt;that) is slow.
&lt;br&gt;&lt;br&gt;2) decide on a Connection testing regime. testConnectionOnCheckout is &amp;nbsp;
&lt;br&gt;safest, but adds overhead to client queries. Setting a short &amp;nbsp;
&lt;br&gt;idleConnectionTestPeriod and testingConnectionOnCheckin leaves open a &amp;nbsp;
&lt;br&gt;small window for a Connection failure to go unnoticed, but in practice &amp;nbsp;
&lt;br&gt;is very reliable.
&lt;br&gt;&lt;br&gt;3) hibernate's c3p0.timeout maps to maxIdleTime. maxIdleTime should be &amp;nbsp;
&lt;br&gt;much longer than idleConnectionTestPeriod. maxIdleTime causes &amp;nbsp;
&lt;br&gt;Connections to be closed (and perhaps reacquired from the database, &amp;nbsp;
&lt;br&gt;depending on whether the min # of Connections remain and what the load &amp;nbsp;
&lt;br&gt;is like). if maxIdleTime is shorter than idleConnectionTestPeriod, &amp;nbsp;
&lt;br&gt;Connections will never be tested, just recycled. If you test, you &amp;nbsp;
&lt;br&gt;needn't use idleConnectionTestPeriod at all, as Connections will &amp;nbsp;
&lt;br&gt;automatically be closed if they fail a test.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;smiles,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Steve
&lt;br&gt;&lt;br&gt;On Nov 25, 2009, at 6:23 AM, rafael liu wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hey, Steve
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sorry to bother, but I couldn't find this info anywhere on the net.. &amp;nbsp;
&lt;br&gt;&amp;gt; The thing is I'm using C3P0 with Hibernate to handle conection &amp;nbsp;
&lt;br&gt;&amp;gt; pooling but I got some IO Exceptions (Connection reset). I've found &amp;nbsp;
&lt;br&gt;&amp;gt; some references advicing the use of timeout and idle_test_period, &amp;nbsp;
&lt;br&gt;&amp;gt; something about idle_test_period being less than timeout. It says &amp;nbsp;
&lt;br&gt;&amp;gt; that timeout can expire a connection but does not clean it, because &amp;nbsp;
&lt;br&gt;&amp;gt; idle_test_period didn't run yet. Is that right?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Congrats for this cool framework!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Rafael Liu
&lt;br&gt;&amp;gt; +55 61 9608-7722
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://rafaelliu.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://rafaelliu.net&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26661769&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C3P0-tp26599997p26661769.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26661747</id>
	<title>Re: C3P0</title>
	<published>2009-12-05T18:37:38Z</published>
	<updated>2009-12-05T18:37:38Z</updated>
	<author>
		<name>Steve Waldman</name>
	</author>
	<content type="html">hi,
&lt;br&gt;&lt;br&gt;probably set checkoutTimeout to a longer value.
&lt;br&gt;&lt;br&gt;if your app tries to get a Connection immediately upon app startup, &amp;nbsp;
&lt;br&gt;there is a race: will c3p0 succeed at acquiring the first Connection &amp;nbsp;
&lt;br&gt;within 300 msecs of app startup. also, that your acquire increment is &amp;nbsp;
&lt;br&gt;1 doesn't help: every time you expand the size of a pool due to load, &amp;nbsp;
&lt;br&gt;the triggering client will have to wait on a new Connection, which &amp;nbsp;
&lt;br&gt;might take longer than 300 msecs and hit your timeout. it's better to &amp;nbsp;
&lt;br&gt;batch acquisitions: when the pool hits capacity, acquire say 3 new &amp;nbsp;
&lt;br&gt;Connections, because being precisely at capacity is generally a bad &amp;nbsp;
&lt;br&gt;place to be.
&lt;br&gt;&lt;br&gt;hope this helps!
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Steve
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 1, 2009, at 5:13 PM, liam christopher wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm evaluating c3p0 as a replacement to DBCP because i have been &amp;nbsp;
&lt;br&gt;&amp;gt; unsuccessfully trying to track down some database issues on some &amp;nbsp;
&lt;br&gt;&amp;gt; backend apps.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have two different set-ups, one is done through jndi on tomcat6, &amp;nbsp;
&lt;br&gt;&amp;gt; but both on start up seem to have a problem connecting to the &amp;nbsp;
&lt;br&gt;&amp;gt; database the first time.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My spring config follows:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;bean id=&amp;quot;abstractDataSource&amp;quot; abstract=&amp;quot;true&amp;quot; &amp;nbsp;
&lt;br&gt;&amp;gt; class=&amp;quot;com.mchange.v2.c3p0.ComboPooledDataSource&amp;quot; destroy- 
&lt;br&gt;&amp;gt; method=&amp;quot;close&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;driverClass&amp;quot; value=&amp;quot;$ 
&lt;br&gt;&amp;gt; {hibernate.connection.driver_class}&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;jdbcUrl&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value=&amp;quot;$ 
&lt;br&gt;&amp;gt; {hibernate.connection.url}&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;user&amp;quot; &amp;nbsp; &amp;nbsp; value=&amp;quot;$ 
&lt;br&gt;&amp;gt; {hibernate.connection.username}&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;password&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;value=&amp;quot;$ 
&lt;br&gt;&amp;gt; {hibernate.connection.password}&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;initialPoolSize&amp;quot; value=&amp;quot;3&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;maxPoolSize&amp;quot; value=&amp;quot;100&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;minPoolSize&amp;quot; value=&amp;quot;3&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;numHelperThreads&amp;quot; value=&amp;quot;3&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;acquireIncrement&amp;quot; value=&amp;quot;1&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;checkoutTimeout&amp;quot; value=&amp;quot;300&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;idleConnectionTestPeriod&amp;quot; value=&amp;quot;300&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;preferredTestQuery&amp;quot; value=&amp;quot;select 1&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;acquireRetryAttempts&amp;quot; value=&amp;quot;5&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;acquireRetryDelay&amp;quot; value=&amp;quot;30&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;unreturnedConnectionTimeout&amp;quot; value=&amp;quot;300&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/bean&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And I consistently get this on startup:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Caused by: com.mchange.v2.resourcepool.TimeoutException: A client &amp;nbsp;
&lt;br&gt;&amp;gt; timed out while waiting to acquire a resource from &amp;nbsp;
&lt;br&gt;&amp;gt; com.mchange.v2.resourcepool.BasicResourcePool@1488344 -- timeout at &amp;nbsp;
&lt;br&gt;&amp;gt; awaitAvailable()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at &amp;nbsp;
&lt;br&gt;&amp;gt; com 
&lt;br&gt;&amp;gt; .mchange 
&lt;br&gt;&amp;gt; .v2 
&lt;br&gt;&amp;gt; .resourcepool 
&lt;br&gt;&amp;gt; .BasicResourcePool.awaitAvailable(BasicResourcePool.java:1317)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at &amp;nbsp;
&lt;br&gt;&amp;gt; com 
&lt;br&gt;&amp;gt; .mchange 
&lt;br&gt;&amp;gt; .v2 
&lt;br&gt;&amp;gt; .resourcepool 
&lt;br&gt;&amp;gt; .BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at &amp;nbsp;
&lt;br&gt;&amp;gt; com 
&lt;br&gt;&amp;gt; .mchange 
&lt;br&gt;&amp;gt; .v2 
&lt;br&gt;&amp;gt; .resourcepool 
&lt;br&gt;&amp;gt; .BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at &amp;nbsp;
&lt;br&gt;&amp;gt; com 
&lt;br&gt;&amp;gt; .mchange 
&lt;br&gt;&amp;gt; .v2 
&lt;br&gt;&amp;gt; .c3p0 
&lt;br&gt;&amp;gt; .impl 
&lt;br&gt;&amp;gt; .C3P0PooledConnectionPool 
&lt;br&gt;&amp;gt; .checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 96 more
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The app loads after that and doesn't seem to have any db problems, &amp;nbsp;
&lt;br&gt;&amp;gt; but i would like to figure out how to stop this timeout from &amp;nbsp;
&lt;br&gt;&amp;gt; happening on startup. Is there some other timeout key that i am &amp;nbsp;
&lt;br&gt;&amp;gt; missing?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; -+ liam +-
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev_______________________________________________&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev_______________________________________________&lt;/a&gt;&lt;br&gt;&amp;gt; c3p0-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26661747&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26661747&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C3P0-tp26599997p26661747.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26661771</id>
	<title>Re: c3p0 fast fail question</title>
	<published>2009-12-05T18:32:22Z</published>
	<updated>2009-12-05T18:32:22Z</updated>
	<author>
		<name>Steve Waldman</name>
	</author>
	<content type="html">creating the pool shouldn't hang anything, Connection acquisition is &amp;nbsp;
&lt;br&gt;asynchronous. c3p0's helper threads should be occupied trying in vain &amp;nbsp;
&lt;br&gt;to acquire Connections, and that's all.
&lt;br&gt;&lt;br&gt;but if the application itself is trying to use c3p0 Connections, calls &amp;nbsp;
&lt;br&gt;to getConnection() will hang awaiting Connection acquisitions that &amp;nbsp;
&lt;br&gt;fail to complete. You can mitigate this with the configuation &amp;nbsp;
&lt;br&gt;parameter checkoutTimeout.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;smiles,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Steve
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 1, 2009, at 6:55 PM, Alan Guth wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm using c3p0 to manage a connection pool to a remote mysql &amp;nbsp;
&lt;br&gt;&amp;gt; server. &amp;nbsp;The server is maintained by a third party and is not a &amp;nbsp;
&lt;br&gt;&amp;gt; critical component of our application.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The problem is that on application startup, if the mysql server is &amp;nbsp;
&lt;br&gt;&amp;gt; down, the whole application fails to start. &amp;nbsp;It hangs on creating &amp;nbsp;
&lt;br&gt;&amp;gt; the connection pool.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What I need is for it to fail and then when the application requests &amp;nbsp;
&lt;br&gt;&amp;gt; a connection from the pool, it should re-attempt a connection. &amp;nbsp;The &amp;nbsp;
&lt;br&gt;&amp;gt; important thing is that the application needs to continue to run &amp;nbsp;
&lt;br&gt;&amp;gt; despite having a bad connection.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Could someone point me in the right direction for this problem? &amp;nbsp; 
&lt;br&gt;&amp;gt; c3p0 seems very configurable, I feel like this must be possible :-)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; AG
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev_______________________________________________&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev_______________________________________________&lt;/a&gt;&lt;br&gt;&amp;gt; c3p0-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26661771&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26661771&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/c3p0-fast-fail-question-tp26601302p26661771.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26601302</id>
	<title>c3p0 fast fail question</title>
	<published>2009-12-01T15:55:51Z</published>
	<updated>2009-12-01T15:55:51Z</updated>
	<author>
		<name>Alan Guth</name>
	</author>
	<content type="html">Hi, &lt;br&gt;&lt;br&gt;I&amp;#39;m using c3p0 to manage a connection pool to a remote mysql server.  The server is maintained by a third party and is not a critical component of our application.&lt;br&gt;&lt;br&gt;The problem is that on application startup, if the mysql server is down, the whole application fails to start.  It hangs on creating the connection pool.&lt;br&gt;
&lt;br&gt;What I need is for it to fail and then when the application requests a connection from the pool, it should re-attempt a connection.  The important thing is that the application needs to continue to run despite having a bad connection.&lt;br&gt;
&lt;br&gt;Could someone point me in the right direction for this problem?  c3p0 seems very configurable, I feel like this must be possible :-)&lt;br&gt;&lt;br&gt;Thanks,  &lt;br&gt;AG&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26601302&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/c3p0-fast-fail-question-tp26601302p26601302.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26599997</id>
	<title>C3P0</title>
	<published>2009-12-01T14:13:20Z</published>
	<updated>2009-12-01T14:13:20Z</updated>
	<author>
		<name>liam christopher</name>
	</author>
	<content type="html">I&amp;#39;m evaluating c3p0 as a replacement to DBCP because i have been unsuccessfully trying to track down some database issues on some backend apps. &lt;br&gt;&lt;br&gt;I have two different set-ups, one is done through jndi on tomcat6, but both on start up seem to have a problem connecting to the database the first time.&lt;br clear=&quot;all&quot;&gt;

&lt;br&gt;&lt;span class=&quot;gI&quot;&gt;&lt;br&gt;My spring config follows:&lt;br&gt;&lt;br&gt;    &amp;lt;bean id=&amp;quot;abstractDataSource&amp;quot; abstract=&amp;quot;true&amp;quot; class=&amp;quot;com.mchange.v2.c3p0.ComboPooledDataSource&amp;quot; destroy-method=&amp;quot;close&amp;quot;&amp;gt;&lt;br&gt;

        &amp;lt;property name=&amp;quot;driverClass&amp;quot; value=&amp;quot;${hibernate.connection.driver_class}&amp;quot; /&amp;gt;&lt;br&gt;        &amp;lt;property name=&amp;quot;jdbcUrl&amp;quot;             value=&amp;quot;${hibernate.connection.url}&amp;quot; /&amp;gt;&lt;br&gt;

        &amp;lt;property name=&amp;quot;user&amp;quot;     value=&amp;quot;${hibernate.connection.username}&amp;quot; /&amp;gt;&lt;br&gt;        &amp;lt;property name=&amp;quot;password&amp;quot;            value=&amp;quot;${hibernate.connection.password}&amp;quot; /&amp;gt;&lt;br&gt;

        &amp;lt;property name=&amp;quot;initialPoolSize&amp;quot; value=&amp;quot;3&amp;quot; /&amp;gt;&lt;br&gt;        &amp;lt;property name=&amp;quot;maxPoolSize&amp;quot; value=&amp;quot;100&amp;quot; /&amp;gt;&lt;br&gt;        &amp;lt;property name=&amp;quot;minPoolSize&amp;quot; value=&amp;quot;3&amp;quot; /&amp;gt;&lt;br&gt;

        &amp;lt;property name=&amp;quot;numHelperThreads&amp;quot; value=&amp;quot;3&amp;quot; /&amp;gt;&lt;br&gt;        &amp;lt;property name=&amp;quot;acquireIncrement&amp;quot; value=&amp;quot;1&amp;quot; /&amp;gt;&lt;br&gt;        &amp;lt;property name=&amp;quot;checkoutTimeout&amp;quot; value=&amp;quot;300&amp;quot; /&amp;gt;&lt;br&gt;

        &amp;lt;property name=&amp;quot;idleConnectionTestPeriod&amp;quot; value=&amp;quot;300&amp;quot; /&amp;gt;&lt;br&gt;        &amp;lt;property name=&amp;quot;preferredTestQuery&amp;quot; value=&amp;quot;select 1&amp;quot; /&amp;gt;&lt;br&gt;        &amp;lt;property name=&amp;quot;acquireRetryAttempts&amp;quot; value=&amp;quot;5&amp;quot; /&amp;gt;&lt;br&gt;

        &amp;lt;property name=&amp;quot;acquireRetryDelay&amp;quot; value=&amp;quot;30&amp;quot; /&amp;gt;&lt;br&gt;        &amp;lt;property name=&amp;quot;unreturnedConnectionTimeout&amp;quot; value=&amp;quot;300&amp;quot; /&amp;gt;&lt;br&gt;    &amp;lt;/bean&amp;gt;&lt;br&gt;&lt;br&gt;And I consistently get this on startup:&lt;br&gt;

&lt;br&gt;Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@1488344 -- timeout at awaitAvailable()&lt;br&gt;        at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1317)&lt;br&gt;

        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)&lt;br&gt;        at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)&lt;br&gt;        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)&lt;br&gt;

        ... 96 more&lt;br&gt;&lt;/span&gt;&lt;br&gt;The app loads after that and doesn&amp;#39;t seem to have any db problems, but i would like to figure out how to stop this timeout from happening on startup. Is there some other timeout key that i am missing?&lt;br&gt;

&lt;br&gt;Thanks,&lt;br&gt;-+ liam +-&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599997&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C3P0-tp26599997p26599997.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26541838</id>
	<title>c3p0 bug exception during initialization - ID: 1739111</title>
	<published>2009-11-27T04:25:23Z</published>
	<updated>2009-11-27T04:25:23Z</updated>
	<author>
		<name>Rajesh T V-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am hitting the c3p0 issue - c3p0 bug exception during initialization - ID: 1739111 with the exception 
&lt;br&gt;&lt;br&gt;[c3p0 bug] Only brand new IdentityTokenized's, with their identities just set, should be registered!!!
&lt;br&gt;&lt;br&gt;Is this issue fixed in a more recent release ?
&lt;br&gt;&lt;br&gt;Rgds,
&lt;br&gt;Rajesh
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26541838&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/c3p0-bug-exception-during-initialization---ID%3A-1739111-tp26541838p26541838.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26537068</id>
	<title>How to configure c3p0 with jasypt?</title>
	<published>2009-11-26T17:51:52Z</published>
	<updated>2009-11-26T17:51:52Z</updated>
	<author>
		<name>Edward King-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=gb2312&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.6000.16939&quot; name=GENERATOR&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;I want to use&amp;nbsp;jasypt 
to&amp;nbsp;configure c3p0,how to do it? &lt;/FONT&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;pre&gt;---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------
&lt;/pre&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537068&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-configure-c3p0-with-jasypt--tp26537068p26537068.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26471476</id>
	<title>How to realize c3p0 with Microsoft Access database and encypted password?</title>
	<published>2009-11-22T17:19:56Z</published>
	<updated>2009-11-22T17:19:56Z</updated>
	<author>
		<name>Edward King-2</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=gb2312&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.6000.16939&quot; name=GENERATOR&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;I want to use c3p0 to realize following 
function:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;1) Connect to microsoft access database&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;2) I learn from document,I can configure database 
password like follows,assume database password is 'tiger'&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property 
name=&quot;password&quot;&amp;gt;tiger&amp;lt;/property&amp;gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot; size=2&gt;&amp;nbsp; &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;&amp;nbsp; but I don't want to write password 'tiger' 
here,I want to encypted password here,such as 'awe3023we' replace of 'tiger', 
but I don't know c3p0 how to resolve it?&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;How to realize above two function?&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;Thanks in advance!&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;Edward&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=&quot;MS Serif&quot;&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;pre&gt;---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------
&lt;/pre&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26471476&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-realize-c3p0-with-Microsoft-Access-database-and-encypted-password--tp26471476p26471476.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26340249</id>
	<title>Re: c3p0-users Digest, Vol 42, Issue 2</title>
	<published>2009-11-13T09:25:56Z</published>
	<updated>2009-11-13T09:25:56Z</updated>
	<author>
		<name>Franklin Antony</name>
	</author>
	<content type="html">What is you number of connection to DB that you are expecting?
&lt;br&gt;Please share the configuration file also.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Franklin
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340249&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users-request@...&lt;/a&gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Send c3p0-users mailing list submissions to
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340249&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; To subscribe or unsubscribe via the World Wide Web, visit
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&amp;gt; or, via email, send a message with subject or body 'help' to
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340249&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users-request@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You can reach the person managing the list at
&lt;br&gt;&amp;gt; 	&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340249&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users-owner@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When replying, please edit your Subject line so it is more specific
&lt;br&gt;&amp;gt; than &amp;quot;Re: Contents of c3p0-users digest...&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Today's Topics:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;1. switcher from DBCP with questions (Marc Logemann)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ----------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Message: 1
&lt;br&gt;&amp;gt; Date: Fri, 13 Nov 2009 11:39:47 +0100
&lt;br&gt;&amp;gt; From: Marc Logemann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340249&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ml@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: [c3p0-users] switcher from DBCP with questions
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340249&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Message-ID: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340249&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;E45DCB50-0787-478B-9A3F-880DC89CC062@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i recently changed to C3P0 with one of our larger apps. We habe 2 &amp;nbsp;
&lt;br&gt;&amp;gt; issues at this point:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) automaticTestTable results in error on startup the application &amp;nbsp;
&lt;br&gt;&amp;gt; (tomcat based) because he tries to create the specified table, even it &amp;nbsp;
&lt;br&gt;&amp;gt; has already created in on our first bootstrap. So we are getting a SQL &amp;nbsp;
&lt;br&gt;&amp;gt; Exception because of that. Interesstingly this only happens on IBM DB2 &amp;nbsp;
&lt;br&gt;&amp;gt; (i5) and not on our test system (MySQL on linux).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2) We just cant get logging to work. We placed the c3p0.properties &amp;nbsp;
&lt;br&gt;&amp;gt; with the content:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; com.mchange.v2.log.MLog=com.mchange.v2.log.log4j.Log4jMLog
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; to the WEB-INF/classes location inside the WAR file but somehow, we &amp;nbsp;
&lt;br&gt;&amp;gt; dont get any results on our ROOT logger. Do we miss something there?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for input.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---
&lt;br&gt;&amp;gt; regards
&lt;br&gt;&amp;gt; Marc Logemann
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.logemann.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.logemann.org&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.logentis.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.logentis.de&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; c3p0-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340249&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; End of c3p0-users Digest, Vol 42, Issue 2
&lt;br&gt;&amp;gt; *****************************************
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26340249&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-c3p0-users-Digest%2C-Vol-42%2C-Issue-2-tp26340249p26340249.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26334701</id>
	<title>switcher from DBCP with questions</title>
	<published>2009-11-13T02:39:47Z</published>
	<updated>2009-11-13T02:39:47Z</updated>
	<author>
		<name>logemann</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;i recently changed to C3P0 with one of our larger apps. We habe 2 &amp;nbsp;
&lt;br&gt;issues at this point:
&lt;br&gt;&lt;br&gt;1) automaticTestTable results in error on startup the application &amp;nbsp;
&lt;br&gt;(tomcat based) because he tries to create the specified table, even it &amp;nbsp;
&lt;br&gt;has already created in on our first bootstrap. So we are getting a SQL &amp;nbsp;
&lt;br&gt;Exception because of that. Interesstingly this only happens on IBM DB2 &amp;nbsp;
&lt;br&gt;(i5) and not on our test system (MySQL on linux).
&lt;br&gt;&lt;br&gt;2) We just cant get logging to work. We placed the c3p0.properties &amp;nbsp;
&lt;br&gt;with the content:
&lt;br&gt;&lt;br&gt;com.mchange.v2.log.MLog=com.mchange.v2.log.log4j.Log4jMLog
&lt;br&gt;&lt;br&gt;&lt;br&gt;to the WEB-INF/classes location inside the WAR file but somehow, we &amp;nbsp;
&lt;br&gt;dont get any results on our ROOT logger. Do we miss something there?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks for input.
&lt;br&gt;&lt;br&gt;---
&lt;br&gt;regards
&lt;br&gt;Marc Logemann
&lt;br&gt;&lt;a href=&quot;http://www.logemann.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.logemann.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.logentis.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.logentis.de&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26334701&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/switcher-from-DBCP-with-questions-tp26334701p26334701.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26190651</id>
	<title>Connection leak/spike during heavy load</title>
	<published>2009-11-03T19:50:13Z</published>
	<updated>2009-11-03T19:50:13Z</updated>
	<author>
		<name>shaoxianyang</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
Hi,&lt;BR&gt;&amp;nbsp;&lt;BR&gt;I am observing connection leak/spike for a short period time when DB undergoes heavy load.&lt;BR&gt;&amp;nbsp;&lt;BR&gt;Let me describe all the relevant configuration first:&lt;BR&gt;&amp;nbsp;&lt;BR&gt;1. Software version:&lt;BR&gt;&amp;nbsp;&lt;BR&gt;MySQL 5.1.36, &lt;BR&gt;
Hibernate &amp;nbsp;3.2.5GA, &lt;BR&gt;
c3p0 0.9.1.2&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;2.Connection pool specified in Tomcat server,&amp;nbsp;&amp;nbsp; /opt/tomcat/conf/context.xml.&amp;nbsp;&amp;nbsp; This is a global connection pool&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Resource auth=&quot;Container&quot; description=&quot;DB Connection&quot; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;driverClass=&quot;com.mysql.jdbc.Driver&quot; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;maxPoolSize=&quot;30&quot; minPoolSize=&quot;30&quot;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;acquireIncrement=&quot;1&quot; maxIdleTime=&quot;1800&quot;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;maxStatements=&quot;600&quot; maxStatementsPerConnection=&quot;20&quot;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;checkoutTimeout=&quot;20000&quot;&amp;nbsp; unreturnedConnectionTimeout=&quot;15&quot;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name=&quot;jdbc/ProdDS&quot;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;user=&quot;pcs&quot; password=&quot;pcs&quot;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;factory=&quot;org.apache.naming.factory.BeanFactory&quot; &lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;type=&quot;com.mchange.v2.c3p0.ComboPooledDataSource&quot; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;jdbcUrl=&quot;jdbc:mysql://cywindows2:3306/dev_catalog?autoConnect=true&quot;/&amp;gt;&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
3.&amp;nbsp;In order to debug what went wrong, I add the following properties in pool configuration of&amp;nbsp;Tomcat context.xml&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; debugUnreturnedConnectionStackTraces=&quot;true&quot;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;automaticTestTable=&quot;connectionTest&quot;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;testConnectionOnCheckout=&quot;true&quot;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;testConnectionOnCheckin=&quot;true&quot;&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&amp;nbsp;These supposed to tell me the connection state when the connection is checked out, checked in.&amp;nbsp; And it reports to me whether any client is holding the connection for too long or never return it.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
4.&amp;nbsp; In order to fully observe it, I also turn on the following logging level for c3p0:&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
com.mchange.v2&amp;amp;level=INFO&lt;BR&gt;
com.mchange.v2.c3p0.impl.DefaultConnectionTester&amp;amp;level=TRACE&lt;BR&gt;
com.mchange.v2.c3p0.impl.NewPooledConnection&amp;amp;level=TRACE&lt;BR&gt;
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool&amp;amp;level=TRACE&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
5.&amp;nbsp; We have a connection limit at DB level, but not at DB user/schema level.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
When DB is under usual load, there is nothing related to connection leak (some client never return connection back to pool),&amp;nbsp; or connection spike (connection bump up to more than maxPoolSize).&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
However, when DB is under heavy load, in our case, there is some other heavy cron job running in the same DB server,&amp;nbsp; My DB monitoring process shows number of connections from a specific DB user and host is beyond maxPoolSize.&amp;nbsp;&amp;nbsp; For mysql DB, connection statistic can be queryed, i.e:&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
mysql&amp;gt; select id, command, state, time, info from information_schema.processlist where user='pcs_user' and host like 'podcast%';&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
The most strange part of it is that it only exceed the maxPoolsize for a very short time, i.e. around 1 minute or so.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Based on the log and mysql connections statistics, I can tell the following:&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
1) DB was under very heavy load, every connection process can show the query it is executing.&amp;nbsp; That is unusal.&amp;nbsp;&amp;nbsp; That somehows shows the DB is under heavy load.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
2) a lot of ongoing transaction failed because connections are taken back by connection pool.&amp;nbsp;&amp;nbsp; Maybe DB is slow, that is why any query takes more than 15 seconds to finish.&amp;nbsp; &lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
3) At the same time, connection pool need to expand new connections for those it killed.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
My question is:&lt;BR&gt;
1)&amp;nbsp; Is connection pool's forcibily killing connection an asynchronous process versus to opening new connection?&amp;nbsp;&amp;nbsp; Does it just issue command to kill connection and not wait till it finishes before it opens new connection?&amp;nbsp; If so, it can explain why we are seeing the short term spike over maxPoolSize.&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
2) If 1) is true, is this a bug or something derived from the asynchorous design?&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
3) How do we avoid the connection spike which exceed maxPoolSize?&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Thanks.&amp;nbsp; I look forward to your replies!&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
Shaoxian Yang&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&amp;nbsp;&lt;BR&gt;
&lt;BR&gt;&amp;nbsp;&lt;BR&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Windows Live: Keep your friends up to date &lt;a href='http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010' target='_new' rel=&quot;nofollow&quot;&gt;with what you do online.&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26190651&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Connection-leak-spike-during-heavy-load-tp26190651p26190651.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26113319</id>
	<title>Re: Checking that Prepared statements are being reused</title>
	<published>2009-10-29T06:37:35Z</published>
	<updated>2009-10-29T06:37:35Z</updated>
	<author>
		<name>Steve Waldman</name>
	</author>
	<content type="html">Paul,
&lt;br&gt;&lt;br&gt;The Statement cache prepares the actual Statement asynchronously (but &amp;nbsp;
&lt;br&gt;remaining careful of concurrency issues -- and there is still a race &amp;nbsp;
&lt;br&gt;condition that bites very rarely and primary Oracle clients here). &amp;nbsp;
&lt;br&gt;When you &amp;quot;prepare&amp;quot; a Statement the first time, you tell the cache what &amp;nbsp;
&lt;br&gt;it should prepare asynchronously, and then wait (in checkout) until it &amp;nbsp;
&lt;br&gt;is ready. Thereafter, it is recovered from some kind of hashtable as &amp;nbsp;
&lt;br&gt;you would expect.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;smiles,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Steve
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Oct 29, 2009, at 5:28 AM, Paul Taylor wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Steve Waldman wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Oct 28, 2009, at 12:21 PM, Paul Taylor wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3. I have a profiler/debugger , is there something I could look &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; for in the stack to identify whether or not its reusing the &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; statement.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; NewProxyConnection.prepareStatement(...) -&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; NewPooledConnection.checkoutStatement(...) -&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; GooGooStatementCache.checkoutStatement( ... )
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Thx yes it was working (I think the issue is somewhere else after &amp;nbsp;
&lt;br&gt;&amp;gt; all), I then tried disabling maxStatementsPerConnection, then the &amp;nbsp;
&lt;br&gt;&amp;gt; path becomes
&lt;br&gt;&amp;gt; NewProxyConnection.prepareStatement(...) -&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Embedconnection.prepareStatement(...)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; One thing I don't get is that with my program I d expect there to be &amp;nbsp;
&lt;br&gt;&amp;gt; one path of :
&lt;br&gt;&amp;gt; &amp;nbsp; NewProxyConnection.prepareStatement(...) -&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Embedconnection.prepareStatement(...)
&lt;br&gt;&amp;gt; Per &amp;nbsp;pooled connection using this statement (for when it initially &amp;nbsp;
&lt;br&gt;&amp;gt; gets created)
&lt;br&gt;&amp;gt; then
&lt;br&gt;&amp;gt; &amp;nbsp;NewProxyConnection.prepareStatement(...) -&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; NewPooledConnection.checkoutStatement(...) -&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; GooGooStatementCache.checkoutStatement( ... )
&lt;br&gt;&amp;gt; for the remaining statements but this doesn't seem to happen
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I call a particular prepared statement for every file I load into &amp;nbsp;
&lt;br&gt;&amp;gt; the program, its the same code calling the prepared statement so is &amp;nbsp;
&lt;br&gt;&amp;gt; identical every time.
&lt;br&gt;&amp;gt; Running against 464 files with a profiler (Yourkit Java Profiler) I &amp;nbsp;
&lt;br&gt;&amp;gt; can see:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Songcache.addToDatabase : 464 calls (my method)
&lt;br&gt;&amp;gt; NewProxyConnection.prepareStatement(): 464 calls
&lt;br&gt;&amp;gt; NewPooledConnection.checkoutStatement(): 464 calls
&lt;br&gt;&amp;gt; GooGooStatementCache.checkoutStatement(): 464 calls
&lt;br&gt;&amp;gt; NewProxyConnection.executeUpdate():464 calls
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; there were no calls to Embedconnection.prepareStatement(...) !
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Paul
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26113319&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checking-that-Prepared-statements-are-being-reused-tp26097672p26113319.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26109750</id>
	<title>Re: Checking that Prepared statements are being reused</title>
	<published>2009-10-29T02:28:21Z</published>
	<updated>2009-10-29T02:28:21Z</updated>
	<author>
		<name>Paul Taylor-9</name>
	</author>
	<content type="html">Steve Waldman wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Oct 28, 2009, at 12:21 PM, Paul Taylor wrote:
&lt;br&gt;&amp;gt;&amp;gt; 3. I have a profiler/debugger , is there something I could look for 
&lt;br&gt;&amp;gt;&amp;gt; in the stack to identify whether or not its reusing the statement.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; NewProxyConnection.prepareStatement(...) -&amp;gt; 
&lt;br&gt;&amp;gt; NewPooledConnection.checkoutStatement(...) -&amp;gt; 
&lt;br&gt;&amp;gt; GooGooStatementCache.checkoutStatement( ... )
&lt;br&gt;&amp;gt;
&lt;br&gt;Thx yes it was working (I think the issue is somewhere else after all), 
&lt;br&gt;I then tried disabling maxStatementsPerConnection, then the path becomes
&lt;br&gt;NewProxyConnection.prepareStatement(...) -&amp;gt; 
&lt;br&gt;Embedconnection.prepareStatement(...)
&lt;br&gt;&lt;br&gt;One thing I don't get is that with my program I d expect there to be one 
&lt;br&gt;path of :
&lt;br&gt;&amp;nbsp; &amp;nbsp; NewProxyConnection.prepareStatement(...) -&amp;gt; 
&lt;br&gt;Embedconnection.prepareStatement(...)
&lt;br&gt;Per &amp;nbsp;pooled connection using this statement (for when it initially gets 
&lt;br&gt;created)
&lt;br&gt;then
&lt;br&gt;&amp;nbsp; &amp;nbsp;NewProxyConnection.prepareStatement(...) -&amp;gt; 
&lt;br&gt;NewPooledConnection.checkoutStatement(...) -&amp;gt; 
&lt;br&gt;GooGooStatementCache.checkoutStatement( ... )
&lt;br&gt;for the remaining statements but this doesn't seem to happen
&lt;br&gt;&lt;br&gt;&lt;br&gt;I call a particular prepared statement for every file I load into the 
&lt;br&gt;program, its the same code calling the prepared statement so is 
&lt;br&gt;identical every time.
&lt;br&gt;Running against 464 files with a profiler (Yourkit Java Profiler) I can see:
&lt;br&gt;&lt;br&gt;Songcache.addToDatabase : 464 calls (my method)
&lt;br&gt;NewProxyConnection.prepareStatement(): 464 calls
&lt;br&gt;NewPooledConnection.checkoutStatement(): 464 calls
&lt;br&gt;GooGooStatementCache.checkoutStatement(): 464 calls
&lt;br&gt;NewProxyConnection.executeUpdate():464 calls
&lt;br&gt;&lt;br&gt;there were no calls to Embedconnection.prepareStatement(...) !
&lt;br&gt;&lt;br&gt;Paul
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26109750&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checking-that-Prepared-statements-are-being-reused-tp26097672p26109750.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26101444</id>
	<title>Re: Checking that Prepared statements are being reused</title>
	<published>2009-10-28T12:57:54Z</published>
	<updated>2009-10-28T12:57:54Z</updated>
	<author>
		<name>Steve Waldman</name>
	</author>
	<content type="html">&lt;br&gt;On Oct 28, 2009, at 12:21 PM, Paul Taylor wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I use prepared statements throughout my application , Im using c3po &amp;nbsp;
&lt;br&gt;&amp;gt; with Apache Derby and I'm not convinced that the prepared statements &amp;nbsp;
&lt;br&gt;&amp;gt; are being reused as my db calls appear to be a bottleneck in the &amp;nbsp;
&lt;br&gt;&amp;gt; code. Ive tried looking at &amp;nbsp;Cached Prepared Statements &amp;nbsp;in general &amp;nbsp;
&lt;br&gt;&amp;gt; and the documentation is very woolly. &amp;nbsp;Most examples centre on a &amp;nbsp;
&lt;br&gt;&amp;gt; prepared stmt being created once and then reused in a loop, I don't &amp;nbsp;
&lt;br&gt;&amp;gt; have this scenario but particular prepared statements will be called &amp;nbsp;
&lt;br&gt;&amp;gt; many times through the lifetime of the application. If someone could &amp;nbsp;
&lt;br&gt;&amp;gt; answer some of these questions that would be great.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. Is c3po's prepared statement caching dependent on whether &amp;nbsp;
&lt;br&gt;&amp;gt; statement caching is supported in the underlying jdbc driver or is &amp;nbsp;
&lt;br&gt;&amp;gt; it implemented fully in c3po itself.
&lt;/div&gt;&lt;br&gt;fully implemented in c3p0
&lt;br&gt;&lt;br&gt;&amp;gt; 2. Is it implicit, in my code I recreate the prepared statement &amp;nbsp;
&lt;br&gt;&amp;gt; every time, but Im hoping the that behind the scenes c3po just &amp;nbsp;
&lt;br&gt;&amp;gt; retrives the previously compiled one and reuses it.
&lt;br&gt;&lt;br&gt;yes, c3p0 as long as the parameters defining the prepared statement &amp;nbsp;
&lt;br&gt;are identical (usually this just means the sql text is the same, but &amp;nbsp;
&lt;br&gt;you might have used one of the several versions of prepareStatement &amp;nbsp;
&lt;br&gt;that set other params, and all these parameters are checked), c3p0 &amp;nbsp;
&lt;br&gt;will retrieve the previously constructed PreparedStatement object &amp;nbsp;
&lt;br&gt;internally.
&lt;br&gt;&lt;br&gt;&amp;gt; 3. I have a profiler/debugger , is there something I could look for &amp;nbsp;
&lt;br&gt;&amp;gt; in the stack to identify whether or not its reusing the statement.
&lt;br&gt;&lt;br&gt;NewProxyConnection.prepareStatement(...) -&amp;gt; &amp;nbsp;
&lt;br&gt;NewPooledConnection.checkoutStatement(...) -&amp;gt; &amp;nbsp;
&lt;br&gt;GooGooStatementCache.checkoutStatement( ... )
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 4. This is how I open the pooling, as I understand it c3po will &amp;nbsp;
&lt;br&gt;&amp;gt; cache the last thirty prepared statements on any particular &amp;nbsp;
&lt;br&gt;&amp;gt; connection, and allows up to 50 connections, correct ?
&lt;br&gt;&amp;gt; DataSource unpooled = DataSources.unpooledDataSource(&amp;quot;jdbc:derby:/ 
&lt;br&gt;&amp;gt; user/paul/testdb&amp;quot;,&amp;quot;paul&amp;quot;,&amp;quot;paul&amp;quot;)
&lt;br&gt;&amp;gt; Map overrides = new HashMap();
&lt;br&gt;&amp;gt; overrides.put(&amp;quot;maxStatementsPerConnection&amp;quot;,&amp;quot;30&amp;quot;);
&lt;br&gt;&amp;gt; overrides.put(&amp;quot;maxPoolSize&amp;quot;,&amp;quot;50&amp;quot;);
&lt;br&gt;&amp;gt; DataSource pooled = DataSources.pooledDataSources( unpooled, &amp;nbsp;
&lt;br&gt;&amp;gt; overrides)
&lt;/div&gt;&lt;br&gt;should be fine. but check the dump of config on initialization (which &amp;nbsp;
&lt;br&gt;c3p0 logs at INFO, wherever you are logging stuff to), and make sure &amp;nbsp;
&lt;br&gt;that maxStatementsPerConnection is actually 30.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 5. In another project which doesn't use pooling and is single &amp;nbsp;
&lt;br&gt;&amp;gt; threaded and only uses a single db connection, I explicitly compiled &amp;nbsp;
&lt;br&gt;&amp;gt; all the prepared statements once, and then added them to a hashmap. &amp;nbsp;
&lt;br&gt;&amp;gt; Then they were retrieved as required and executed but never closed &amp;nbsp;
&lt;br&gt;&amp;gt; (closing prevents them being reused). This improved performance by &amp;nbsp;
&lt;br&gt;&amp;gt; about 20% but would be difficult to code in my current multithreaded &amp;nbsp;
&lt;br&gt;&amp;gt; application. In the new app &amp;nbsp;connections are only grabbed when a &amp;nbsp;
&lt;br&gt;&amp;gt; query has to be executed, and then the connection is closed straight &amp;nbsp;
&lt;br&gt;&amp;gt; away would it be worth actually getting each thread to hang onto &amp;nbsp;
&lt;br&gt;&amp;gt; their connection for the life of the app, and would it be worth &amp;nbsp;
&lt;br&gt;&amp;gt; explicity caching &amp;nbsp;the most comonly used prepared statements for &amp;nbsp;
&lt;br&gt;&amp;gt; each connection and then reusing them.
&lt;/div&gt;&lt;br&gt;let c3p0 take care of this for you, just make sure &amp;nbsp;
&lt;br&gt;maxStatementsPerConnection is large enough so you don't churn through &amp;nbsp;
&lt;br&gt;prepared statements.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks Paul
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;good luck!
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Steve
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101444&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checking-that-Prepared-statements-are-being-reused-tp26097672p26101444.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26097672</id>
	<title>Checking that Prepared statements are being reused</title>
	<published>2009-10-28T09:21:00Z</published>
	<updated>2009-10-28T09:21:00Z</updated>
	<author>
		<name>Paul Taylor-9</name>
	</author>
	<content type="html">Hi
&lt;br&gt;&lt;br&gt;I use prepared statements throughout my application , Im using c3po with 
&lt;br&gt;Apache Derby and I'm not convinced that the prepared statements are 
&lt;br&gt;being reused as my db calls appear to be a bottleneck in the code. Ive 
&lt;br&gt;tried looking at &amp;nbsp;Cached Prepared Statements &amp;nbsp;in general and the 
&lt;br&gt;documentation is very woolly. &amp;nbsp;Most examples centre on a prepared stmt 
&lt;br&gt;being created once and then reused in a loop, I don't have this scenario 
&lt;br&gt;but particular prepared statements will be called many times through the 
&lt;br&gt;lifetime of the application. If someone could answer some of these 
&lt;br&gt;questions that would be great.
&lt;br&gt;&lt;br&gt;1. Is c3po's prepared statement caching dependent on whether statement 
&lt;br&gt;caching is supported in the underlying jdbc driver or is it implemented 
&lt;br&gt;fully in c3po itself.
&lt;br&gt;2. Is it implicit, in my code I recreate the prepared statement every 
&lt;br&gt;time, but Im hoping the that behind the scenes c3po just retrives the 
&lt;br&gt;previously compiled one and reuses it.
&lt;br&gt;3. I have a profiler/debugger , is there something I could look for in 
&lt;br&gt;the stack to identify whether or not its reusing the statement.
&lt;br&gt;4. This is how I open the pooling, as I understand it c3po will cache 
&lt;br&gt;the last thirty prepared statements on any particular connection, and 
&lt;br&gt;allows up to 50 connections, correct ?
&lt;br&gt;DataSource unpooled = 
&lt;br&gt;DataSources.unpooledDataSource(&amp;quot;jdbc:derby:/user/paul/testdb&amp;quot;,&amp;quot;paul&amp;quot;,&amp;quot;paul&amp;quot;)
&lt;br&gt;Map overrides = new HashMap();
&lt;br&gt;overrides.put(&amp;quot;maxStatementsPerConnection&amp;quot;,&amp;quot;30&amp;quot;);
&lt;br&gt;overrides.put(&amp;quot;maxPoolSize&amp;quot;,&amp;quot;50&amp;quot;);
&lt;br&gt;DataSource pooled = DataSources.pooledDataSources( unpooled, overrides)
&lt;br&gt;5. In another project which doesn't use pooling and is single threaded 
&lt;br&gt;and only uses a single db connection, I explicitly compiled all the 
&lt;br&gt;prepared statements once, and then added them to a hashmap. Then they 
&lt;br&gt;were retrieved as required and executed but never closed (closing 
&lt;br&gt;prevents them being reused). This improved performance by about 20% but 
&lt;br&gt;would be difficult to code in my current multithreaded application. In 
&lt;br&gt;the new app &amp;nbsp;connections are only grabbed when a query has to be 
&lt;br&gt;executed, and then the connection is closed straight away would it be 
&lt;br&gt;worth actually getting each thread to hang onto their connection for the 
&lt;br&gt;life of the app, and would it be worth explicity caching &amp;nbsp;the most 
&lt;br&gt;comonly used prepared statements for each connection and then reusing them.
&lt;br&gt;&lt;br&gt;thanks Paul
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26097672&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checking-that-Prepared-statements-are-being-reused-tp26097672p26097672.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25982230</id>
	<title>Too many connections: A funny story</title>
	<published>2009-10-20T13:41:49Z</published>
	<updated>2009-10-20T13:41:49Z</updated>
	<author>
		<name>stevecoh1</name>
	</author>
	<content type="html">This started off as a frantic late-night cry for help. &amp;nbsp;I was tearing my 
&lt;br&gt;hair out. &amp;nbsp;In the process of writing it, my error became clear. &amp;nbsp;It's 
&lt;br&gt;funny enough for me to take the time to edit and pass on. &amp;nbsp;Someday 
&lt;br&gt;somebody may find it useful.
&lt;br&gt;&lt;br&gt;I suddenly had a problem with connections living too long, resulting in 
&lt;br&gt;MySQL &amp;quot;too many connections&amp;quot; open errors.
&lt;br&gt;&lt;br&gt;Database is Mysql &amp;nbsp;4.1.22 running on RedHat 4.8.
&lt;br&gt;&lt;br&gt;Application is a &amp;quot;not-really-web&amp;quot; application that, however, runs on 
&lt;br&gt;Tomcat 6.0 for a variety of reasons that needn't concern us. &amp;nbsp; There are 
&lt;br&gt;no long-lasting transactions or humongous queries - database activity is 
&lt;br&gt;light and only a small part of the application. &amp;nbsp;There are no EJB's or 
&lt;br&gt;container-managed anything. &amp;nbsp;Application uses Hibernate 3.2 and I 
&lt;br&gt;religiously close all transactions and sessions.
&lt;br&gt;&lt;br&gt;Three application servers are served by this database. &amp;nbsp;One resides 
&lt;br&gt;within the same LAN as the database server, the other two are 
&lt;br&gt;geographically distant. &amp;nbsp;Prior to the spit hitting the fan last week, 
&lt;br&gt;all access to the database was through a separate application colocated 
&lt;br&gt;on the same machine as the database that decrypted the data coming 
&lt;br&gt;across the wire, then fed it to Hibernate and the database. &amp;nbsp;This old 
&lt;br&gt;home-brewed encryption-cum-message-queueing engine was a real pain to 
&lt;br&gt;maintain and it was decided to replace it with direct connects to the 
&lt;br&gt;database machine that used MYSQL's SSL support for the encryption.
&lt;br&gt;&lt;br&gt;All the testing of this new architecture was done within the LAN, and it 
&lt;br&gt;seemed to work great. &amp;nbsp;We rolled it out first to the single machine that 
&lt;br&gt;was on the same LAN as the DB server. &amp;nbsp;Everything ran better. &amp;nbsp;But when 
&lt;br&gt;we rolled it out to the two distant machines, we soon experienced Too 
&lt;br&gt;Many Connections errors. &amp;nbsp;Many more connections were being left in SLEEP 
&lt;br&gt;state by MySQL than were needed or than the c3p0 connection pooling was 
&lt;br&gt;supposed to allow.
&lt;br&gt;&lt;br&gt;Now, here's the weird part. &amp;nbsp;We started collecting statistics on how 
&lt;br&gt;many connections MySQL had open every five minutes. &amp;nbsp;The server that was 
&lt;br&gt;on the same LAN as the database NEVER varied above or below the minimum 
&lt;br&gt;number of connections specified in the C3P0 settings. &amp;nbsp;The other two 
&lt;br&gt;servers would leave connections for lengthy periods of time, often 
&lt;br&gt;coming near to doubling what C3p0 wanted to let through. &amp;nbsp;MYSQL was 
&lt;br&gt;using the default configuration setting of 28800 seconds (8hrs) to time 
&lt;br&gt;out connections. &amp;nbsp;(And yet, for some reason that is still unknown, in 
&lt;br&gt;spite of this, it was killing the sessions after 7200 seconds.) &amp;nbsp;Which 
&lt;br&gt;was fine by me - it was saving my keyster until I figured this out.
&lt;br&gt;&lt;br&gt;Ironically, it happened that the worst spikes in open connections 
&lt;br&gt;happened when the load was LOWEST! &amp;nbsp;This led us to the supposition that 
&lt;br&gt;the firewall was somehow involved. &amp;nbsp;The firewall was timing out 
&lt;br&gt;connections from the two remote servers every five minutes: the same 
&lt;br&gt;limit as C3P0 was placing on the idle_test_period. &amp;nbsp;If the firewall got 
&lt;br&gt;there first, it might just kill the socket without talking to MYSQL, 
&lt;br&gt;just before C3P0 was about to tickle it. &amp;nbsp;(This suggests, by the way, 
&lt;br&gt;that there is another use for the idle_test_period: as a keepalive 
&lt;br&gt;mechanism to prevent firewalls from shutting sockets without telling the 
&lt;br&gt;database). &amp;nbsp;So we boosted the Firewall's timeout to 6 minutes. &amp;nbsp;We 
&lt;br&gt;thought we had it solved.
&lt;br&gt;&lt;br&gt;It didn't do any good! &amp;nbsp;The number of open connections quickly passed 
&lt;br&gt;C3P0's max and once load went down at night, the number of open 
&lt;br&gt;connections GREW! &amp;nbsp;That's when I started to tear my hair out and start 
&lt;br&gt;this message.
&lt;br&gt;&lt;br&gt;These were the C3P0 settings via Hibernate. No separate C3P0 settings 
&lt;br&gt;were being done.
&lt;br&gt;&lt;br&gt;&amp;lt;property name=&amp;quot;hibernate.c3p0.min_size&amp;quot;&amp;gt;5&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;lt;property name=&amp;quot;hibernate.c3p0.max_size&amp;quot;&amp;gt;20&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;lt;property name=&amp;quot;hibernate.c3p0.timeout&amp;quot;&amp;gt;600&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;lt;property name=&amp;quot;hibernate.c3p0.max_statements&amp;quot;&amp;gt;50&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;lt;property name=&amp;quot;hibernate.c3p0.acquire_increment&amp;quot;&amp;gt;2&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;lt;property name=&amp;quot;hibernate.c3p0.idle_test period&amp;quot;&amp;gt;300&amp;lt;/property&amp;gt;
&lt;br&gt;&lt;br&gt;Say,what's that last one? &amp;quot;hibernate.c3p0.idle_test period&amp;quot;? &amp;nbsp;Shouldn't 
&lt;br&gt;there be an underscore between &amp;quot;test&amp;quot; and &amp;quot;period&amp;quot;? &amp;nbsp;D'Oh!!!!!! &amp;nbsp;So, 
&lt;br&gt;this meant we weren't doing ANY idle testing (I learned from the docs) 
&lt;br&gt;and no keep-alives were being sent, thus ALL connections were being 
&lt;br&gt;closed by the firewall without telling the database. &amp;nbsp;Which explains why 
&lt;br&gt;the worst spikes happened at low-volume times: at higher volume times 
&lt;br&gt;other client accesses caused the threads to be reused while at lower 
&lt;br&gt;volume times, the firewall got there first. &amp;nbsp;Got my fix deployed and 
&lt;br&gt;immediately the crazy mountain-shaped graphs turned flat as a board. &amp;nbsp;
&lt;br&gt;Turns out the minimum size was good enough 99% of the time. &amp;nbsp;C3P0, it 
&lt;br&gt;turned out, worked like a charm.
&lt;br&gt;&lt;br&gt;Anyway, I thought someone might get a kick out of this war story and 
&lt;br&gt;maybe someone down the road will Google and find an idea that's useful 
&lt;br&gt;to them. &amp;nbsp;Thanks for a great product. &amp;nbsp;Once you set it up right, it just 
&lt;br&gt;works.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25982230&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Too-many-connections%3A-A-funny-story-tp25982230p25982230.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25969734</id>
	<title>Re: Any history of 0.9.1.2 blocking?</title>
	<published>2009-10-19T21:26:58Z</published>
	<updated>2009-10-19T21:26:58Z</updated>
	<author>
		<name>mpassell</name>
	</author>
	<content type="html">Hi Robert,&lt;br&gt;&lt;br&gt;I had this exact problem myself.  See the following section (or a slightly more up-to-date version for v0.9.1.2) for details on how to fix it:&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.mchange.com/projects/c3p0/index.html#other_ds_configuration&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mchange.com/projects/c3p0/index.html#other_ds_configuration&lt;/a&gt;&lt;br&gt;
&lt;br&gt;--Matt&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Oct 19, 2009 at 11:11 PM, Robert Nicholson &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25969734&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robert.nicholson@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
At work we have multi threaded applications that are talking to a servlet which provides a means to write to the database. It seems that occasionally we&amp;#39;re seeing this service block indefinately and we suspect that it&amp;#39;s related to it&amp;#39;s use of the c3p0 connection pool. We&amp;#39;ll know for sure when we see the problem again as we will kill -QUIT to get a stack dump.&lt;div&gt;

&lt;br&gt;&lt;/div&gt;&lt;div&gt;So, is there any history of 0.9.1.2 blocking indefinately when checking out a connection from it&amp;#39;s connection pool? &lt;/div&gt;
&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Come build with us! The BlackBerry(R) Developer Conference in SF, CA&lt;br&gt;
is the only developer event you need to attend this year. Jumpstart your&lt;br&gt;
developing skills, take BlackBerry mobile applications to market and stay&lt;br&gt;
ahead of the curve. Join us from November 9 - 12, 2009. Register now!&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
c3p0-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25969734&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25969734&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Any-history-of-0.9.1.2-blocking--tp25969115p25969734.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25969115</id>
	<title>Any history of 0.9.1.2 blocking?</title>
	<published>2009-10-19T20:11:55Z</published>
	<updated>2009-10-19T20:11:55Z</updated>
	<author>
		<name>Robert Nicholson-3</name>
	</author>
	<content type="html">At work we have multi threaded applications that are talking to a servlet which provides a means to write to the database. It seems that occasionally we&amp;#39;re seeing this service block indefinately and we suspect that it&amp;#39;s related to it&amp;#39;s use of the c3p0 connection pool. We&amp;#39;ll know for sure when we see the problem again as we will kill -QUIT to get a stack dump.&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;So, is there any history of 0.9.1.2 blocking indefinately when checking out a connection from it&amp;#39;s connection pool? &lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25969115&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Any-history-of-0.9.1.2-blocking--tp25969115p25969115.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25904655</id>
	<title>Re: C3p0 connection pool monitor</title>
	<published>2009-10-15T01:22:31Z</published>
	<updated>2009-10-15T01:22:31Z</updated>
	<author>
		<name>wmayuresh</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;anyz wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;&lt;a href=&quot;http://adnanm.blogspot.com/2007/07/monitoring-c3p0-using-jmxjconsole.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://adnanm.blogspot.com/2007/07/monitoring-c3p0-using-jmxjconsole.html&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Thanks anyz.
&lt;br&gt;&lt;br&gt;Last time, I tried this, it was not working. Now, worked. Might be, I was missing some configuration at that time.
&lt;br&gt;&lt;br&gt;Additionally, it gives thread details.
&lt;br&gt;&lt;br&gt;However, when compared with my jsp results with this tool, those are matching. So, my method use looks correct. I just want to confirm that, I should look at numBusyConnectionsAllUsers attribute for current connections in pool.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C3p0-connection-pool-monitor-tp25855677p25904655.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25903075</id>
	<title>Re: C3p0 connection pool monitor</title>
	<published>2009-10-14T22:02:31Z</published>
	<updated>2009-10-14T22:02:31Z</updated>
	<author>
		<name>anyz</name>
	</author>
	<content type="html">&lt;br&gt;&lt;a href=&quot;http://adnanm.blogspot.com/2007/07/monitoring-c3p0-using-jmxjconsole.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://adnanm.blogspot.com/2007/07/monitoring-c3p0-using-jmxjconsole.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C3p0-connection-pool-monitor-tp25855677p25903075.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25855677</id>
	<title>C3p0 connection pool monitor</title>
	<published>2009-10-12T06:20:37Z</published>
	<updated>2009-10-12T06:20:37Z</updated>
	<author>
		<name>wmayuresh</name>
	</author>
	<content type="html">hi all,
&lt;br&gt;I wanted to monitor connection pool created using c3p0.
&lt;br&gt;So, I wrote a jsp to get ref to datasource as below:
&lt;br&gt;&amp;lt;%!
&lt;br&gt;WebApplicationContext wac = null;
&lt;br&gt;ComboPooledDataSource ds = null;
&lt;br&gt;public void jspInit()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wac = WebApplicationContextUtils
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .getRequiredWebApplicationContext(getServletContext());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ds = (ComboPooledDataSource)wac.getBean(&amp;quot;dataSource&amp;quot;);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;%&amp;gt;
&lt;br&gt;and i looked at:
&lt;br&gt;&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;%=ds.getNumBusyConnectionsAllUsers()%&amp;gt;&amp;lt;/td&amp;gt;
&lt;br&gt;&lt;br&gt;to get current number of connections in the pool.
&lt;br&gt;I just refresh to get the current no. Is this correct mechanism? because, I'm not getting expected results and I'm not sure if it is issue with way I'm getting conn pool current size or othe rpart of app.
&lt;br&gt;I'm using spring-hiberrnate.
&lt;br&gt;My data source properties are:
&lt;br&gt;&amp;lt;bean id=&amp;quot;dataSource&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&amp;quot;com.mchange.v2.c3p0.ComboPooledDataSource&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; destroy-method=&amp;quot;close&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;driverClass&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value&amp;gt;oracle.jdbc.driver.OracleDriver&amp;lt;/value&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;jdbcUrl&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value&amp;gt;jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=BROKEN)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=myservice)))&amp;lt;/value&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;properties&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;props&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;c3p0.acquire_increment&amp;quot;&amp;gt;2&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;c3p0.idle_test_period&amp;quot;&amp;gt;100&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;c3p0.max_size&amp;quot;&amp;gt;20&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;c3p0.max_statements&amp;quot;&amp;gt;0&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;c3p0.min_size&amp;quot;&amp;gt;2&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;user&amp;quot;&amp;gt;myuser&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;prop key=&amp;quot;password&amp;quot;&amp;gt;password&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/props&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/bean&amp;gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/C3p0-connection-pool-monitor-tp25855677p25855677.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25813565</id>
	<title>XML config - Unknown property - ManagementCoordinator</title>
	<published>2009-10-08T16:54:47Z</published>
	<updated>2009-10-08T16:54:47Z</updated>
	<author>
		<name>niaouli</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I red that the JMX management can be disable by setting the ManageCoordinator to NullManagementCoordinator. So I wrote this simple c3p0-config.xml file :
&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;c3p0-config&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;default-config&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- Disable JMX management --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;com.mchange.v2.c3p0.management.ManagementCoordinator&amp;quot;&amp;gt;com.mchange.v2.c3p0.management.NullManagementCoordinator&amp;lt;/property&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/default-config&amp;gt;
&lt;br&gt;&amp;lt;/c3p0-config&amp;gt;
&lt;br&gt;&lt;br&gt;But now I get this error :
&lt;br&gt;&lt;br&gt;WARN (com.mchange.v2.c3p0.cfg.C3P0Config) Unknown c3p0-config property: com.mchange.v2.c3p0.management.ManagementCoordinator
&lt;br&gt;&lt;br&gt;So is it a bug or is it my mistake? Thanks.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/XML-config---Unknown-property---ManagementCoordinator-tp25813565p25813565.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25502890</id>
	<title>NullPointerException Using C3P0 with Hibernate on Jetty</title>
	<published>2009-09-17T21:16:23Z</published>
	<updated>2009-09-17T21:16:23Z</updated>
	<author>
		<name>neilac333</name>
	</author>
	<content type="html">I am using the following:
&lt;br&gt;&lt;br&gt;Hibernate 3.2.6
&lt;br&gt;C3P0 0.9.1.2
&lt;br&gt;Jetty 6.1.11
&lt;br&gt;OJDBC 6 (hitting an Oracle database)
&lt;br&gt;&lt;br&gt;When I deploy my web application to Jetty, I get the following:
&lt;br&gt;&lt;br&gt;17 Sep 2009 16:31:21,765: INFO &amp;nbsp;com.mchange.v2.c3p0.C3P0Registry.banner - Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
&lt;br&gt;17 Sep 2009 16:31:21,781: DEBUG com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean.reinitialize - MBean: com.mchange.v2.c3p0:type=PooledDataSource[2sa1mf831jyqtyw1wehs7c|50988] registered.
&lt;br&gt;17 Sep 2009 16:31:21,843: DEBUG com.mchange.v2.resourcepool.BasicResourcePool.incrementPendingAcquires - incremented pending_acquires: 1
&lt;br&gt;17 Sep 2009 16:31:21,843: DEBUG com.mchange.v2.resourcepool.BasicResourcePool.incrementPendingAcquires - incremented pending_acquires: 2
&lt;br&gt;17 Sep 2009 16:31:21,843: DEBUG com.mchange.v2.resourcepool.BasicResourcePool.incrementPendingAcquires - incremented pending_acquires: 3
&lt;br&gt;17 Sep 2009 16:31:21,843: DEBUG com.mchange.v2.resourcepool.BasicResourcePool.&amp;lt;init&amp;gt; - com.mchange.v2.resourcepool.BasicResourcePool@1402d5a config: [start -&amp;gt; 3; min -&amp;gt; 3; max -&amp;gt; 15; inc -&amp;gt; 3; num_acq_attempts -&amp;gt; 30; acq_attempt_delay -&amp;gt; 1000; check_idle_resources_delay -&amp;gt; 0; mox_resource_age -&amp;gt; 0; max_idle_time -&amp;gt; 0; excess_max_idle_time -&amp;gt; 0; destroy_unreturned_resc_time -&amp;gt; 0; expiration_enforcement_delay -&amp;gt; 0; break_on_acquisition_failure -&amp;gt; false; debug_store_checkout_exceptions -&amp;gt; false]
&lt;br&gt;17 Sep 2009 16:31:21,859: DEBUG com.mchange.v2.resourcepool.BasicResourcePool.run - An exception occurred while acquiring a poolable resource. Will retry.
&lt;br&gt;java.lang.NullPointerException
&lt;br&gt;&amp;nbsp; &amp;nbsp;at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at java.sql.DriverManager.getDriver(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at com.mchange.v2.c3p0.DriverManagerDataSource.driver(DriverManagerDataSource.java:223)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:119)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:143)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:132)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
&lt;br&gt;&amp;nbsp; &amp;nbsp;at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
&lt;br&gt;&lt;br&gt;&lt;br&gt;-------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;Here is my configuration of my datasource in Jetty:
&lt;br&gt;&lt;br&gt;&amp;lt;New id=&amp;quot;myDataSource&amp;quot; class=&amp;quot;org.mortbay.jetty.plus.naming.Resource&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Arg&amp;gt;MY_DS&amp;lt;/Arg&amp;gt; &amp;lt;!-- jndi name --&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Arg&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;New class=&amp;quot;com.mchange.v2.c3p0.ComboPooledDataSource&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Set name=&amp;quot;driverClass&amp;quot;&amp;gt;oracle.jdbc.OracleDriver&amp;lt;/Set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Set name=&amp;quot;jdbcUrl&amp;quot;&amp;gt;url&amp;lt;/Set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Set name=&amp;quot;user&amp;quot;&amp;gt;user&amp;lt;/Set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Set name=&amp;quot;password&amp;quot;&amp;gt;pwd&amp;lt;/Set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Set name=&amp;quot;minPoolSize&amp;quot;&amp;gt;1&amp;lt;/Set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Set name=&amp;quot;acquireIncrement&amp;quot;&amp;gt;1&amp;lt;/Set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Set name=&amp;quot;maxPoolSize&amp;quot;&amp;gt;10&amp;lt;/Set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Set name=&amp;quot;idleConnectionTestPeriod&amp;quot;&amp;gt;300&amp;lt;/Set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Set name=&amp;quot;checkoutTimeout&amp;quot;&amp;gt;0&amp;lt;/Set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Set name=&amp;quot;maxStatementsPerConnection&amp;quot;&amp;gt;50&amp;lt;/Set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/New&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Arg&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/New&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-------------------------------------
&lt;br&gt;&lt;br&gt;Finally, my persistence.xml file:
&lt;br&gt;&lt;br&gt;&amp;lt;persistence-unit name=&amp;quot;myPersistenceUnit&amp;quot; transaction-type=&amp;quot;RESOURCE_LOCAL&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;provider&amp;gt;org.hibernate.ejb.HibernatePersistence&amp;lt;/provider&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;jta-data-source&amp;gt;MY_DS&amp;lt;/jta-data-source&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;class&amp;gt;com.myapp.MyClass&amp;lt;/class&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;properties&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;hibernate.show_sql&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;hibernate.format_sql&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;hibernate.dialect&amp;quot; value=&amp;quot;org.hibernate.dialect.Oracle10gDialect&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;hibernate.cache.provider_class&amp;quot; value=&amp;quot;org.hibernate.cache.HashtableCacheProvider&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;hibernate.c3p0.min_size&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;hibernate.c3p0.max_size&amp;quot; value=&amp;quot;10&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;hibernate.c3p0.timeout&amp;quot; value=&amp;quot;0&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;hibernate.c3p0.max_statements&amp;quot; value=&amp;quot;50&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;hibernate.c3p0.acquire_increment&amp;quot; value=&amp;quot;1&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name=&amp;quot;hibernate.c3p0.idle_test_period&amp;quot; value=&amp;quot;300&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/properties&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/persistence-unit&amp;gt;
&lt;br&gt;&lt;br&gt;-------------------------------------
&lt;br&gt;&lt;br&gt;I have the Oracle driver and C3P0 in the classpath.
&lt;br&gt;&lt;br&gt;This error has been driving me nuts for a while, so any insight is really appreciated.
&lt;br&gt;&lt;br&gt;Thanks.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NullPointerException-Using-C3P0-with-Hibernate-on-Jetty-tp25502890p25502890.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25489002</id>
	<title>remove user pool</title>
	<published>2009-09-17T03:49:56Z</published>
	<updated>2009-09-17T03:49:56Z</updated>
	<author>
		<name>T. Gullo</name>
	</author>
	<content type="html">Is there a way to remove a user's pool of connections (other than hardReset() for everybody)?
&lt;br&gt;&lt;br&gt;The problem: If a user with their own pool of connections changes their password, there will then be two user pools (I guess one for each username/password combo). &amp;nbsp;This causes problems.
&lt;br&gt;&lt;br&gt;I'd like a way to remove a user's pool of connections without disturbing the other pools.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/remove-user-pool-tp25489002p25489002.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25482250</id>
	<title>using c3p0 - each user has own database username and password and thus conn pool</title>
	<published>2009-09-16T15:46:08Z</published>
	<updated>2009-09-16T15:46:08Z</updated>
	<author>
		<name>T. Gullo</name>
	</author>
	<content type="html">Any best practices for using c3p0 in an environment where each user has their own database username and password?
&lt;br&gt;&lt;br&gt;I know this sounds a bit odd, but certain environments like the one I'm in, require each user to have an Oracle username and password managed by the Oracle db. &amp;nbsp;I'm using c3p0 for connection pooling. &amp;nbsp;
&lt;br&gt;&lt;br&gt;One of the problems I've run into is changing of passwords. &amp;nbsp;If a user changes a password through the database, stale connections are still alive in the pool. &amp;nbsp;Even setting maxIdleTime and checkin connection don't seem to solve the problem.&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/using-c3p0---each-user-has-own-database-username-and-password-and-thus-conn-pool-tp25482250p25482250.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25456728</id>
	<title>c3p0 datasource vs JBoss JMS module</title>
	<published>2009-09-15T08:59:29Z</published>
	<updated>2009-09-15T08:59:29Z</updated>
	<author>
		<name>Jakub Danilewicz</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have another problem with plugging c3p0-based (v. 0.9.1) datasource 
&lt;br&gt;into JBoss 4.2.x environment. This time the troublemaker is the standard 
&lt;br&gt;JMS module bundled with the JBoss server.
&lt;br&gt;&lt;br&gt;Once I define a c3p0 datasource through a &amp;quot;/deploy/c3p0-service.xml&amp;quot; file:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;mbean code=&amp;quot;com.mchange.v2.c3p0.jboss.C3P0PooledDataSource&amp;quot; 
&lt;br&gt;name=&amp;quot;jboss.jca:service=DataSourceBinding,name=jdbc/mydb&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;attribute name=&amp;quot;JndiName&amp;quot;&amp;gt;jdbc/mydb&amp;lt;/attribute&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;attribute 
&lt;br&gt;name=&amp;quot;JdbcUrl&amp;quot;&amp;gt;jdbc:postgresql://host:5432/db-name&amp;lt;/attribute&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;attribute name=&amp;quot;DriverClass&amp;quot;&amp;gt;org.postgresql.Driver&amp;lt;/attribute&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/mbean&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;the following &amp;quot;JMS-2-DB&amp;quot; configuration set in the 
&lt;br&gt;&amp;quot;/deploy/jms/postgres-jdbc2-service.xml&amp;quot; file ceases to work:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;mbean code=&amp;quot;org.jboss.mq.pm.jdbc2.PersistenceManager&amp;quot; 
&lt;br&gt;name=&amp;quot;jboss.mq:service=PersistenceManager&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;depends 
&lt;br&gt;optional-attribute-name=&amp;quot;ConnectionManager&amp;quot;&amp;gt;jboss.jca:service=DataSourceBinding,name=jdbc/mydb&amp;lt;/depends&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;attribute name=&amp;quot;SqlProperties&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....
&lt;br&gt;&lt;br&gt;&lt;br&gt;The exception is like the one below:
&lt;br&gt;&lt;br&gt;2009-09-15 WARN &amp;nbsp;[org.jboss.system.ServiceController] Problem starting 
&lt;br&gt;service jboss.mq:service=PersistenceManager
&lt;br&gt;javax.management.AttributeNotFoundException: not found: BindName
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.jboss.mx.server.AbstractMBeanInvoker.getAttribute(AbstractMBeanInvoker.java:335)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:556)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at 
&lt;br&gt;org.jboss.mq.pm.jdbc2.PersistenceManager.initializeFields(PersistenceManager.java:1831)
&lt;br&gt;&lt;br&gt;&lt;br&gt;I have tried various naming conventions for the c3p0 mbean (e.g.: 
&lt;br&gt;&amp;quot;jboss:service=JMSPooledDS&amp;quot;), but the exception being thrown was always 
&lt;br&gt;the same.
&lt;br&gt;&lt;br&gt;Any ideas?
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;j-d
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry&amp;reg; Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9&amp;#45;12, 2009. Register now&amp;#33;
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconf&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconf&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25456728&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/c3p0-datasource-vs-JBoss-JMS-module-tp25456728p25456728.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25383935</id>
	<title>Status of c3p0, deadlock issues etc.</title>
	<published>2009-09-10T06:35:57Z</published>
	<updated>2009-09-10T06:35:57Z</updated>
	<author>
		<name>Steven Githens-2</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;First time poster, but we've been using c3p0 for a while. &amp;nbsp;We're using 
&lt;br&gt;c3p0-0.9.1.2 with Oracle and a typically 8 node cluster of appservers. &amp;nbsp;
&lt;br&gt;A year or so ago we actually switched from dbcp because of major 
&lt;br&gt;production issues.
&lt;br&gt;&lt;br&gt;Now, we are starting to see issues with our database pooling load, 
&lt;br&gt;receiving large numbers of timeouts after connections ramp up, and often 
&lt;br&gt;they don't seem to go away very quickly. &amp;nbsp;If anyone has information to 
&lt;br&gt;share or links about using c3p0 under very heavy load it'd be much 
&lt;br&gt;appreciated.
&lt;br&gt;&lt;br&gt;I can certainly post more detailed information (in the act of putting it 
&lt;br&gt;together), but I'm also trying to assess the health of c3p0 and 
&lt;br&gt;0.9.1.2. &amp;nbsp;There hasn't been much activity for a while and there is a 
&lt;br&gt;slow trickle on the email list, which seems Ok for a smallish stable 
&lt;br&gt;open source library. &amp;nbsp;But seeing the repeated bug reports of deadlock 
&lt;br&gt;and other connection issues has me a little worried, and it seems worthy 
&lt;br&gt;of investigating whether c3p0 may be the cause of some of these issues ( 
&lt;br&gt;in addition to our application ).
&lt;br&gt;&lt;br&gt;Any ideas or thoughts greatly welcomed.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Steven Githens
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25383935&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Status-of-c3p0%2C-deadlock-issues-etc.-tp25383935p25383935.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25222828</id>
	<title>Unable to see C3P0 beans in Jconsole</title>
	<published>2009-08-31T05:38:32Z</published>
	<updated>2009-08-31T05:38:32Z</updated>
	<author>
		<name>JconsoleUser</name>
	</author>
	<content type="html">hi ,
&lt;br&gt;&lt;br&gt;I am working on an application which is a combination of tibco and java.
&lt;br&gt;we are using hibernate c3p0 connection pools.
&lt;br&gt;i wanted to monitor the pool.
&lt;br&gt;when i try connecting jconsole to the tibco i m bringing up the jconsole.
&lt;br&gt;but in the mbeans tab there is no c3p0 bean available for me to monitor.
&lt;br&gt;i have added the jar in the command line.
&lt;br&gt;following is my command
&lt;br&gt;&lt;br&gt;jconsole -J-Djava.class.path=$JAVA_HOME/lib/jconsole.jar;$JAVA_HOME/lib/tools.jar;c3p0-0.9.1-pre5a_custom.jar
&lt;br&gt;&lt;br&gt;This is urgent.
&lt;br&gt;&lt;br&gt;kindly let me know if you know the solution.
&lt;br&gt;&lt;br&gt;regards
&lt;br&gt;A.S
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unable-to-see-C3P0-beans-in-Jconsole-tp25222828p25222828.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25121474</id>
	<title>APPARENT DEADLOCK 0.9.1.2</title>
	<published>2009-08-24T11:21:23Z</published>
	<updated>2009-08-24T11:21:23Z</updated>
	<author>
		<name>Michael Young-10</name>
	</author>
	<content type="html">I could use some help debugging this deadlock problem. Seems like c3p0 &amp;nbsp;
&lt;br&gt;is having trouble returning connections to the pool. Shortly after &amp;nbsp;
&lt;br&gt;this happens we get OOM exceptions.
&lt;br&gt;&lt;br&gt;11:45:01,498 WARN &amp;nbsp;[ThreadPoolAsynchronousRunner:608] &amp;nbsp;
&lt;br&gt;com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$DeadlockDetector@6534d952 -- APPARENT DEADLOCK!!! Creating emergency &amp;nbsp;
&lt;br&gt;threads for unassigned pending tasks!
&lt;br&gt;11:45:22,129 WARN &amp;nbsp;[ThreadPoolAsynchronousRunner:624] &amp;nbsp;
&lt;br&gt;com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$DeadlockDetector@6534d952 -- APPARENT DEADLOCK!!! Complete Status:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Managed Threads: 10
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Active Threads: 7
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Active Tasks:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@6fab154c &amp;nbsp;
&lt;br&gt;(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@490369da &amp;nbsp;
&lt;br&gt;(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@7f1a8ca8 &amp;nbsp;
&lt;br&gt;(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#7)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@2808aac9 &amp;nbsp;
&lt;br&gt;(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@510486a7 &amp;nbsp;
&lt;br&gt;(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#9)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@24677f &amp;nbsp;
&lt;br&gt;(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@5606c2eb &amp;nbsp;
&lt;br&gt;(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#6)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pending Tasks:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@55e6fe6c
&lt;br&gt;Pool thread stack traces:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread- 
&lt;br&gt;#2,5,main]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask.run(BasicResourcePool.java:1229)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread- 
&lt;br&gt;#8,5,main]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.lang.Object.wait(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread- 
&lt;br&gt;#7,5,main]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask.run(BasicResourcePool.java:1229)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread- 
&lt;br&gt;#4,5,main]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask.run(BasicResourcePool.java:1229)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread- 
&lt;br&gt;#9,5,main]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask.run(BasicResourcePool.java:1229)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread- 
&lt;br&gt;#1,5,main]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask.run(BasicResourcePool.java:1229)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread- 
&lt;br&gt;#0,5,main]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask.run(BasicResourcePool.java:1229)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread- 
&lt;br&gt;#5,5,main]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.lang.Object.wait(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread- 
&lt;br&gt;#3,5,main]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.lang.Object.wait(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread- 
&lt;br&gt;#6,5,main]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask.run(BasicResourcePool.java:1229)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; com.mchange.v2.async.ThreadPoolAsynchronousRunner 
&lt;br&gt;$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
&lt;br&gt;&lt;br&gt;&lt;br&gt;11:46:37,554 WARN &amp;nbsp;[ThreadPoolAsynchronousRunner:416] Task &amp;nbsp;
&lt;br&gt;com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@6fab154c (in deadlocked PoolThread) &amp;nbsp;
&lt;br&gt;failed to complete in maximum time 60000ms. Trying interrupt().
&lt;br&gt;11:46:37,555 WARN &amp;nbsp;[ThreadPoolAsynchronousRunner:416] Task &amp;nbsp;
&lt;br&gt;com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@7f1a8ca8 (in deadlocked PoolThread) &amp;nbsp;
&lt;br&gt;failed to complete in maximum time 60000ms. Trying interrupt().
&lt;br&gt;11:46:37,555 WARN &amp;nbsp;[ThreadPoolAsynchronousRunner:416] Task &amp;nbsp;
&lt;br&gt;com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@2808aac9 (in deadlocked PoolThread) &amp;nbsp;
&lt;br&gt;failed to complete in maximum time 60000ms. Trying interrupt().
&lt;br&gt;11:46:50,449 WARN &amp;nbsp;[ThreadPoolAsynchronousRunner:416] Task &amp;nbsp;
&lt;br&gt;com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@510486a7 (in deadlocked PoolThread) &amp;nbsp;
&lt;br&gt;failed to complete in maximum time 60000ms. Trying interrupt().
&lt;br&gt;11:46:50,449 WARN &amp;nbsp;[ThreadPoolAsynchronousRunner:416] Task &amp;nbsp;
&lt;br&gt;com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@24677f (in deadlocked PoolThread) &amp;nbsp;
&lt;br&gt;failed to complete in maximum time 60000ms. Trying interrupt().
&lt;br&gt;11:46:50,449 WARN &amp;nbsp;[ThreadPoolAsynchronousRunner:416] Task &amp;nbsp;
&lt;br&gt;com.mchange.v2.resourcepool.BasicResourcePool 
&lt;br&gt;$1RefurbishCheckinResourceTask@5606c2eb (in deadlocked PoolThread) &amp;nbsp;
&lt;br&gt;failed to complete in maximum time 60000ms. Trying interrupt().
&lt;br&gt;&lt;br&gt;&lt;br&gt;- Mike
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25121474&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/APPARENT-DEADLOCK-0.9.1.2-tp25121474p25121474.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25075430</id>
	<title>Re: java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE</title>
	<published>2009-08-21T00:32:49Z</published>
	<updated>2009-08-21T00:32:49Z</updated>
	<author>
		<name>lmk</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I get the same exception
&lt;br&gt;&lt;br&gt;&lt;i&gt;DEBUG com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#10 com.mchange.v2.c3p0.stmt.GooGooStatementCache - ENTER METHOD: closeAll( com.microsoft.sqlserver.jdbc.SQLServerConnection@10242e )! -- num_connections: 5
&lt;br&gt;&amp;nbsp;DEBUG com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#10 com.mchange.v2.c3p0.stmt.GooGooStatementCache - closeAll(): com.mchange.v2.c3p0.stmt.PerConnectionMaxOnlyStatementCache stats -- total size: 51; checked out: 3; num connections: 5; num keys: 51
&lt;br&gt;&amp;nbsp;DEBUG com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#10 com.mchange.v2.c3p0.impl.NewPooledConnection - com.mchange.v2.c3p0.impl.NewPooledConnection@1b77a4e closed by a client.
&lt;br&gt;&amp;nbsp;java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:491)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:191)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
&lt;br&gt;DEBUG com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#10 com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool - Successfully destroyed PooledConnection: com.mchange.v2.c3p0.impl.NewPooledConnection@1b77a4e
&lt;br&gt;&amp;nbsp;DEBUG com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#10 com.mchange.v2.resourcepool.BasicResourcePool - Successfully destroyed resource: com.mchange.v2.c3p0.impl.NewPooledConnection@1b77a4e
&lt;br&gt;&amp;nbsp;DEBUG com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#10 com.mchange.v2.resourcepool.BasicResourcePool - Preparing to destroy resource: com.mchange.v2.c3p0.impl.NewPooledConnection@540667&lt;/i&gt;&lt;br&gt;&lt;br&gt;the exceptions occurs when I run a a loop to get dataTable rows 1000 rows by 1000 using &amp;nbsp;firstresult and maxResult, so, &amp;nbsp;the server has using 99% CPU and the server downs.
&lt;br&gt;&lt;br&gt;Config: Tomcat 6, hibernate 3, spring, c3p0 0.9.1
&lt;br&gt;&lt;br&gt;Best regards!
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/java.lang.Exception%3A-DEBUG----CLOSE-BY-CLIENT-STACK-TRACE-tp15025518p25075430.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25026329</id>
	<title>unsubscribe</title>
	<published>2009-08-18T07:01:30Z</published>
	<updated>2009-08-18T07:01:30Z</updated>
	<author>
		<name>yarram</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;http://old.nabble.com/attachment/25026329/0/20024262.gif&quot; width=&quot;163&quot; height=&quot;49&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;font size=&quot;2&quot;&gt;&lt;br&gt;Regards,&lt;br&gt;Aravind R Yarram&lt;br&gt;770 740 6951 (Work)&lt;/font&gt;&lt;br&gt;&lt;img width=&quot;16&quot; height=&quot;16&quot; src=&quot;http://old.nabble.com/attachment/25026329/1/graycol.gif&quot; border=&quot;0&quot; alt=&quot;Inactive hide details for Abhi &amp;lt;abhirama.bhat@gmail.com&amp;gt;&quot;&gt;&lt;font size=&quot;2&quot;&gt;Abhi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25026329&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;abhirama.bhat@...&lt;/a&gt;&amp;gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr valign=&quot;top&quot;&gt;&lt;td style=&quot;background-image:url(cid:2__=0ABBFC85DFDE82168f9e8a93df93@equifax.com); background-repeat: no-repeat; &quot; width=&quot;40%&quot;&gt;&lt;ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;b&gt;&lt;font size=&quot;2&quot;&gt;Abhi &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25026329&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;abhirama.bhat@...&lt;/a&gt;&amp;gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=&quot;2&quot;&gt; &lt;/font&gt;&lt;p&gt;&lt;font size=&quot;2&quot;&gt;08/17/2009 03:23 AM&lt;/font&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/td&gt;&lt;td width=&quot;60%&quot;&gt;&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;58&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/25026329/3/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;&lt;div align=&quot;right&quot;&gt;&lt;font size=&quot;2&quot;&gt;To&lt;/font&gt;&lt;/div&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/25026329/3/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;&lt;font size=&quot;2&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25026329&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;58&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/25026329/3/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;&lt;div align=&quot;right&quot;&gt;&lt;font size=&quot;2&quot;&gt;cc&lt;/font&gt;&lt;/div&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/25026329/3/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;1%&quot;&gt;&lt;img width=&quot;58&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/25026329/3/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;&lt;div align=&quot;right&quot;&gt;&lt;font size=&quot;2&quot;&gt;Subject&lt;/font&gt;&lt;/div&gt;&lt;/td&gt;&lt;td width=&quot;100%&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/25026329/3/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;br&gt;&lt;font size=&quot;2&quot;&gt;[c3p0-users] Idle connection testing&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr valign=&quot;top&quot;&gt;&lt;td width=&quot;58&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/25026329/3/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;/td&gt;&lt;td width=&quot;336&quot;&gt;&lt;img width=&quot;1&quot; height=&quot;1&quot; src=&quot;http://old.nabble.com/attachment/25026329/3/ecblank.gif&quot; border=&quot;0&quot; alt=&quot;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt;I read the documentation for &lt;a href=&quot;http://www.mchange.com/projects/c3p0/index.html#configuring_connection_testing&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;u&gt;&lt;font color=&quot;#0000FF&quot;&gt;idle connection testing&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;. I have a few questions:&lt;br&gt;&lt;br&gt;1. testConnectionOnCheckin and testConnectionOnCheckout happen when the connection is returned to the pool and when the connection is requested from the pool respectively. Is my understanding correct?&lt;br&gt;&lt;br&gt;2. The documentation says &lt;tt&gt;idleConnectionTestPeriod&lt;/tt&gt;, &lt;tt&gt;testConnectionOnCheckout&lt;/tt&gt;, and &lt;tt&gt;testConnectionOnCheckin&lt;/tt&gt; control &lt;u&gt;when&lt;/u&gt; Connections will be tested. Also it says Most applications should work quite reliably using a combination of &lt;tt&gt;idleConnectionTestPeriod&lt;/tt&gt; and &lt;tt&gt;testConnectionsOnCheckIn&lt;/tt&gt;. Since both of these parameters detemine when the connection is tested how do they work together? &lt;br&gt;&lt;br&gt;-- &lt;br&gt;Cheers,&lt;br&gt;Abhi&lt;tt&gt;&lt;font size=&quot;2&quot;&gt;------------------------------------------------------------------------------&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day &lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on &lt;br&gt;what you do best, core application coding. Discover what's new with &lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;2&quot;&gt;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;2&quot;&gt;_______________________________________________&lt;br&gt;c3p0-users mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25026329&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;&lt;br&gt;&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;2&quot;&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;/font&gt;&lt;/tt&gt;&lt;tt&gt;&lt;font size=&quot;2&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/tt&gt;&lt;br&gt;This message contains information from Equifax Inc. which may be confidential and privileged.  If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited.  If you have received this transmission in error, please notify by e-mail &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25026329&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postmaster@...&lt;/a&gt;.&lt;BR&gt;
&lt;BR&gt;
&lt;/body&gt;&lt;/html&gt;
&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with 
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;c3p0-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25026329&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c3p0-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/c3p0-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/c3p0-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;pic12052.gif&lt;/strong&gt; (1K) &lt;a href=&quot;http://old.nabble.com/attachment/25026329/2/pic12052.gif&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Idle-connection-testing-tp25018435p25026329.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25018524</id>
	<title>JDBC4 is supported ?</title>
	<published>2009-08-17T22:00:48Z</published>
	<updated>2009-08-17T22:00:48Z</updated>
	<author>
		<name>FredCN</name>
	</author>
	<content type="html">or not?&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/c3p0---users-f28822.html&quot; embed=&quot;fixTarget[28822]&quot; target=&quot;_top&quot; &gt;c3p0 - users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/JDBC4-is-supported---tp25018524p25018524.html" />
</entry>

</feed>
