why set 10 in hibernate config file for connection pooling ? size = 1 is built in size.why need to increase size ?
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
....
<property name="connection.pool_size">10</property>
....
</session-factory>
</hibernate-configuration>
From the Hibernate API Docs.
connection.pool_sizeindicates the maximum number of pooled connections. So it is better to keep it at a logical count. It depends on your application and DB how much it can handle.10is a reasonable count that will typically used as it is sufficient for most cases.