HHH-17301 - Reduce amount of connections
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
parent
d27cc10438
commit
cb6a78dc44
|
@ -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 );
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue