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

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 { ...@@ -122,8 +122,10 @@ public class DatabaseConfig {
dataSource.setLogValidationErrors(true); dataSource.setLogValidationErrors(true);
dataSource.setAbandonWhenPercentageFull(80); dataSource.setAbandonWhenPercentageFull(80);
dataSource.setRemoveAbandoned(true); dataSource.setRemoveAbandoned(true);
dataSource.setRemoveAbandonedTimeout(20); dataSource.setRemoveAbandonedTimeout(60);
return dataSource; 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