Connection time out issues after inactivity period

前端 未结 2 1753
孤城傲影
孤城傲影 2021-02-06 13:22

We have an api which uses hibernate as ORM tool and we use c3p0 as the connection pool handler. We have no problems when we are under load. However, we are running out into \"un

2条回答
  •  悲&欢浪女
    2021-02-06 13:58

    In the section of High availability and clustering in MySQL Java Connector, take a look at the properties; specifically autoReconnect and autoReconnetForPools. Use the properties in your JDBC connection URL. They have helped me before when using MySQL, Hibernate, and C3P0. Hope that this helps.

提交回复
热议问题