Commit 24db398c authored by Matija Obreza's avatar Matija Obreza

Tomcat JDBC pool: ResetAbandondedTimer and increased abandoned timeout

- ResetAbandonedTimer when a statement is prepared or a query is executed
parent 18b72e67
......@@ -122,8 +122,10 @@ public class DatabaseConfig {
dataSource.setLogValidationErrors(true);
dataSource.setAbandonWhenPercentageFull(80);
dataSource.setRemoveAbandoned(true);
dataSource.setRemoveAbandonedTimeout(20);
dataSource.setRemoveAbandonedTimeout(60);
dataSource.setSuspectTimeout(40);
dataSource.setJdbcInterceptors("ResetAbandonedTimer");
return dataSource;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment