GettingSetting maxLifetime value for connection

Hi,

i´m getting this warn in logs:
Failed to validate connection org.mariadb.jdbc.MariaDbConnection@2943816f (Connection.setNetworkTimeout cannot be called on a closed connection). Possibly consider using a shorter maxLifetime value

question is where can i set max-lifetime for cuba application, since wait_timeout in my database is set to 600s

Hi,
It’s described in the documentation:

In order to configure connection pool settings, specify the HikariCP properties prefixed with cuba.dataSource. , for example cuba.dataSource.maximumPoolSize or cuba.dataSource.connectionTimeout . See the full list of supported parameters and their default values in the HikariCP documentation.

https://doc.cuba-platform.com/manual-7.2/db_connection.html