HHH-17301 - Reduce amount of connections

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2023-10-18 23:50:31 +02:00 committed by Christian Beikov
parent d27cc10438
commit cb6a78dc44
8 changed files with 10 additions and 10 deletions

View File

@ -65,10 +65,10 @@ public class C3P0ConnectionProviderTest extends BaseCoreFunctionalTestCase {
// see according c3p0 settings in META-INF/persistence.xml
int actual_minPoolSize = (Integer) mBeanServer.getAttribute( obj, "minPoolSize" );
assertEquals( 50, actual_minPoolSize );
assertEquals( 0, actual_minPoolSize );
int actual_initialPoolSize = (Integer) mBeanServer.getAttribute( obj, "initialPoolSize" );
assertEquals( 50, actual_initialPoolSize );
assertEquals( 0, actual_initialPoolSize );
int actual_maxPoolSize = (Integer) mBeanServer.getAttribute( obj, "maxPoolSize" );
assertEquals( 800, actual_maxPoolSize );

View File

@ -11,8 +11,8 @@ hibernate.connection.username @jdbc.user@
hibernate.connection.password @jdbc.pass@
hibernate.connection.init_sql @connection.init_sql@
hibernate.connection.pool_size 5
hibernate.c3p0.min_size 50
hibernate.connection.pool_size 1
hibernate.c3p0.min_size 0
hibernate.c3p0.max_size 800
hibernate.c3p0.max_statements 50
hibernate.jdbc.batch_size 10

View File

@ -11,7 +11,7 @@ hibernate.connection.username @jdbc.user@
hibernate.connection.password @jdbc.pass@
hibernate.connection.init_sql @connection.init_sql@
hibernate.connection.pool_size 5
hibernate.connection.pool_size 2
hibernate.show_sql false

View File

@ -11,7 +11,7 @@ hibernate.connection.username @jdbc.user@
hibernate.connection.password @jdbc.pass@
hibernate.connection.init_sql @connection.init_sql@
hibernate.connection.pool_size 5
hibernate.connection.pool_size 2
hibernate.cache.region_prefix hibernate.test

View File

@ -12,7 +12,7 @@ hibernate.connection.username @jdbc.user@
hibernate.connection.password @jdbc.pass@
hibernate.connection.init_sql @connection.init_sql@
hibernate.connection.pool_size 5
hibernate.connection.pool_size 1
hibernate.show_sql false
hibernate.format_sql true

View File

@ -11,7 +11,7 @@ hibernate.connection.username @jdbc.user@
hibernate.connection.password @jdbc.pass@
hibernate.connection.init_sql @connection.init_sql@
hibernate.connection.pool_size 5
hibernate.connection.pool_size 1
hibernate.jdbc.batch_size 10
hibernate.connection.provider_class org.hibernate.connection.ProxoolConnectionProvider
hibernate.proxool.properties pool-one.properties

View File

@ -12,7 +12,7 @@ hibernate.connection.url @jdbc.url@
hibernate.connection.username @jdbc.user@
hibernate.connection.password @jdbc.pass@
hibernate.connection.pool_size 5
hibernate.connection.pool_size 1
hibernate.show_sql false
hibernate.format_sql true

View File

@ -12,7 +12,7 @@ hibernate.connection.username @jdbc.user@
hibernate.connection.password @jdbc.pass@
hibernate.connection.init_sql @connection.init_sql@
hibernate.connection.pool_size 5
hibernate.connection.pool_size 1
hibernate.show_sql false
hibernate.format_sql true