c3p0 deadlocks in Hibernate

前端 未结 1 1233
终归单人心
终归单人心 2021-01-17 02:57

I am new to hibernate and have started using C3P0 as the connection pooling manager with hibernate because without that I was having timeout issues after 8 hours of no conta

1条回答
  •  [愿得一人]
    2021-01-17 03:24

    Your application almost certainly is leaking Connections. See c3p0's docs for how to debug the problem.

    TL; DR: Set

    30
    true
    

    Check your logs for stack traces that check out Connections or Sessions in your application but fail to reliably close() them. Fix that, by using something like try-with-resources to reliably close things. When you have fixed the problem, remove the above properties.

    See also this

    0 讨论(0)
提交回复
热议问题