Thanks for your help. I solved the problem. It turns out the problem was in
that fastConnectionFailover option. I disabled that, and it now starts up
in 46 seconds.

On Wed, Nov 16, 2011 at 2:23 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ben,
>
> On 11/16/11 2:44 PM, Ben Gladstone wrote:
> > <Resource name="jdbc/PortalDb" auth="Container"
> > type="oracle.jdbc.pool.OracleDataSource"
> > connectionCachingEnabled="true" description="FCF Datasource"
> > driverClassName="oracle.jdbc.OracleDriver"
> > factory="oracle.jdbc.pool.OracleDataSourceFactory"
> > fastConnectionFailoverEnabled="true" onsConfigStr="nodes=PRIVATE"
> >
> > implicitCachingEnabled="true"
> > connectionCacheProperties="(InitialLimit=10, MinLimit=10,
> > MaxLimit=150, ConnectionWaitTimeout=40,
> > AbandonedConnectionTimeout=40, TimeToLiveTimeout=90)"
> > connectionCacheName="portal_connection_pool" user="PRIVATE"
> > password="PRIVATE" url="jdbc:oracle:thin:@
> >
> (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PRIVATE)(PORT=1521))(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=PRIVATE))"
> >
> >
> />
>
> Note that you are not using Tomcat's connection pooling: you are using
> Oracle's connection pooling because you specified the "factory"
> attribute and told Oracle to create DataSource objects for you.
>
> Try setting type="javax.sql.DataSource" and removing the "factory"
> attribute to use Tomcat's connection pool (which is commons-dbcp).
>
> If Tomcat takes 7 minutes to start up, that sounds like plenty of time
> to take a thread dump to see what's going on.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk7EN+sACgkQ9CaO5/Lv0PBIKQCfXNOu9MyIbT4LTkXm2QxE4Vz3
> NO8AmwZgLbVKc8vHyKCsqvK1mhIp/GNC
> =FhEO
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to