From 3663b61076ea0b6ab24c70c94927aebe307a9476 Mon Sep 17 00:00:00 2001 From: Christine Banek Date: Tue, 12 May 2020 12:35:41 -0700 Subject: [PATCH] [DM-24845] Increase connection pool size Allow for more maximum connections to be going at once. Also, lower the number of idle connections to qserv, since each idle connection calls select 1 as a keep alive, and that can get spammy in the qserv logs. But I still want that keep alive. --- src/main/webapp/META-INF/context.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/META-INF/context.xml b/src/main/webapp/META-INF/context.xml index 766da91..fb778a4 100644 --- a/src/main/webapp/META-INF/context.xml +++ b/src/main/webapp/META-INF/context.xml @@ -7,7 +7,7 @@ type="javax.sql.DataSource" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" minEvictableIdleTimeMillis="30000" - maxActive="10" maxIdle="10" maxWait="20000" initialSize="5" + maxActive="100" maxIdle="10" maxWait="20000" initialSize="5" username="${tapuser.jdbc.username}" password="${tapuser.jdbc.password}" driverClassName="${tapuser.jdbc.driverClassName}" url="${tapuser.jdbc.url}" @@ -24,7 +24,7 @@ type="javax.sql.DataSource" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" minEvictableIdleTimeMillis="30000" - maxActive="10" maxIdle="10" maxWait="20000" initialSize="5" + maxActive="100" maxIdle="1" maxWait="20000" initialSize="5" username="${qservuser.jdbc.username}" password="${qservuser.jdbc.password}" driverClassName="${qservuser.jdbc.driverClassName}" url="${qservuser.jdbc.url}"