Datasource connections not removed from pool

Description

We have an application that uses a number of MySQL datasources, including one for session storage. Each has a Connection Timeout of 1 minute and Auto Reconnect set to true. If we use the application, then let it sit idle for a minute, the Open Connections reported on the Web Administration page return to zero, except for the datasource at the END of the list of datasources in [tomcat]\lucee-server\context\lucee-server.xml, which remains open.

This leads to a prevalence of errors like this one: The last packet successfully received from the server was 32,615,195 milliseconds ago. The last packet sent successfully to the server was 32,615,195 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.

If we then add an extra datasource, the issue goes away.

Environment

Windows (8 and 2019), Java 11.0.7, Tomcat 9.0.35, MySQL extension 8.0.19

Activity

Show:

Andri Senjaya 18 August 2021 at 14:17

I have set dbpoolclear every 7hrs, but this is not help. I still get the error after some hour if no request.

Simon Goldschmidt 18 August 2021 at 06:08

Yes, we still see this occur with 5.3.8.201 too… kept at bay with a periodic dbpoolclear()

Andri Senjaya 18 August 2021 at 05:38

in lucee 5.3.8.201 the problem still there disappointed face

Zac Spitzer 12 July 2021 at 16:28

marking this as resolved

Simon Goldschmidt 14 April 2021 at 05:01

We saw the issue until 5.3.8.139. In our test environment, we are no longer seeing the issue (with limited testing) on 5.3.8.167 and we don't really see the issue in production with a regular dbpoolclear()

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 15 November 2020 at 21:23
Updated 13 July 2022 at 11:40

Flag notifications