Senhores(itas)
Usando o Pool do Tomcat para gerenciar minhas conexões com o banco de dados, tenho recebido o erro abaixo:
org.postgresql.util.PSQLException: Backend start-up failed: FATAL: too many connections for database "projetostecsell1".
at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:443)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:98)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)
at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:117)
at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
at org.postgresql.Driver.connect(Driver.java:235)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at br.com.undertaker.model.locator.ServiceLocator.getConnectionManual(ServiceLocator.java:57)
Configurações do Tomcat
maxActive="10"
maxIdle="10"
maxWait="15000"
validationQuery="select current_date"
removeAbandoned="true"
removeAbandonedTimeout="30"
logAbandoned="true"