Connection hangs after time of inactivity

前端 未结 5 1002
耶瑟儿~
耶瑟儿~ 2020-12-31 18:21

In my application, Spring manages connection pool for database access. Hibernate uses these connections for its queries. At first glance, I have no problems with the pool: i

5条回答
  •  暖寄归人
    2020-12-31 19:20

    One way to resolve idle time out issue is to have dual connection pools, one is active and other one is standby (no connections created yet). Have a timer with trigger time much less than FIREWALL_IDLE_TIMEOUT and switch between connection pools. I tried this and ITS WORKING.

提交回复
热议问题