• [^] # Re: removeAbandoned

    Posté par . En réponse au message Tomcat : Postgres/JDBC Datasource fait planter Tomcat.. Évalué à 3.

    Sur ce site, les parametres sont bien expliqués :

    http://www.tomcatexpert.com/blog/2010/04/01/configuring-jdbc-pool-high-concurrency

    Mon context.xml est maintenant comme ci-dessous, ça à l'air presque parfait, je vais tester la monté en charge :

    <Context antiJARLocking="true" path="/Globby">
     <!-- Read this for a great doc :
     http://www.tomcatexpert.com/blog/2010/04/01/configuring-jdbc-pool-high-concurrency -->
    <Resource name="jdbc/GlobbyDB" auth="Container"
     type="javax.sql.DataSource"
     driverClassName="org.postgresql.Driver"
     factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" 
     url="jdbc:postgresql://127.0.0.1:5432/globby"
     username="postgres" password="niceTryNSA" 
     maxActive="500"
     maxIdle="30"
     removeAbandoned="true"
     removeAbandonedTimeout="10"
     abandonWhenPercentageFull="60"
     maxWait="1000"
    />
    </Context>