how to choose maximum connection pool size?
<property name="hibernateProperties"> <props> <prop key="hibernate.c3p0.max_size">?</prop> </props> </property> is it just a random number guess ? or are there any studies that suggest to use a particular range for a specific use case? Well, assuming that you are talking about a production system, then "random number guess" is definitely not the answer. Actually, "random number guess" is never the answer for any sort of configuration in a production environment. Same goes for "just accepting the product's defaults". Connection pool properties (such as max_size ) depend on a few factors: