users@glassfish.java.net

Postgres active connections max out at 5

From: <glassfish_at_javadesktop.org>
Date: Mon, 30 Jun 2008 11:49:15 PDT

I've been having some trouble with the connection pool to postgres. Even though I've increased the pool size to 100 connections the max postgres will ever use, even under a very heavy load is 5. 30 idle sessions are created but no more than 5 are ever active. It's very strange and for glassfish to be usable I really need more than 5 active database connections. Posted below is the connection pool resource in domain.xml. Any help would be greatly appreciated. Thanks!

<jdbc-connection-pool allow-non-component-callers="false" associate-with-thread="false" connection-creation-retry-attempts="0" connection-creation-retry-interval-in-seconds="10" connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" connection-validation-method="auto-commit" datasource-classname="org.postgresql.ds.PGSimpleDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" lazy-connection-association="false" lazy-connection-enlistment="false" match-connections="false" max-connection-usage-count="0" max-pool-size="100" max-wait-time-in-millis="60000" name="Postgres" non-transactional-connections="false" pool-resize-quantity="20" res-type="javax.sql.DataSource" statement-timeout-in-seconds="-1" steady-pool-size="30" validate-atmost-once-period-in-seconds="0" wrap-jdbc-objects="false">
[Message sent by forum member 'chickenbandit' (chickenbandit)]

http://forums.java.net/jive/thread.jspa?messageID=283432