KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I can't wrap my head around why the initialization of a c3p0 connection pool takes 2 min in my Hibernate application. This is in my Hibernate.cfg.xml: <hibernate-configuration> <session-factory> <property name="connection.driver_class">org.postgresql.Driver</property> <property name="connection.url"/> <property name="connection.default_schema"/> <property name="connection.username"/> <property name="connection.password"/> <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property> <property name="cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</property> <property name="current_session_context_class">thread</property> <property name="hibernate.c3p0.acquire_increment">1</property> <property name="hibernate.c3p0.min_size">3</property> <property name="hibernate.c3p0.max_size">10</property> <property name="hibernate.c3p0.timeout">300</property> <property name="hibernate.c3p0.max_statements">50</property> <property name="hibernate.c3p0.idle_test_period">3000</property> <property name="hibernate.c3p0."></property> <property name="show_sql">true</property> <property name="format_sql">false</property> <property name="hbm2ddl.auto">create</property> </session-factory> </hibernate-configuration> The connection settings are set in my HibernateUtil file when building the session factory. The pool is initialize when the first transaction in my tests is openend. Connecting and querying the db works just fine afterwards, it only hangs on the following line for a while before it will start. I formated the output a bit as I assume th
Tags (comma-separated)
Save Edits
Cancel