WebApp (Tomcat-jdbc) Pooled DB connection throwing abandon exception

前端 未结 8 2076
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 08:18

I have been browsing SO for some time, and chewing my hat in the process, but cannot find an exact match to my problem.
For short, I am getting superb stack trace (org.a

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-08 08:34

    Had a similar problem ie., tomcat was closing JDBC connection due to it becoming abandoned because a transaction was taking a long time.

    Resolved it by realizing that abandoned and idle are different and by setting: spring.datasource.tomcat.removeAbandonedTimeout: 86400 #seconds

提交回复
热议问题