legacy-knowledge-base
公開されました Sep. 10, 2025

Error: HikariPool-1 - Failed to validate connection org.postgresql.jdbc.PgConnection@xxxxxx (This connection has been closed.). Possibly consider using a shorter maxLifetime value

written-by

Madhusudan Sharma

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • Facing the following error in the logs and the Liferay node became unresponsive:
HikariPool-1 - Failed to validate connection org.postgresql.jdbc.PgConnection@6c009ca1 (This connection has been closed.). Possibly consider using a shorter maxLifetime value.

Environment

  • Liferay DXP 7.4

Resolution

  • The maxLifetime property controls the maximum lifetime of a connection in the pool. An in-use connection will never be retired, only when it is closed will it then be removed.
  • On a connection-by-connection basis, minor negative attenuation is applied to avoid mass extinction in the pool.
  • We strongly recommend setting this value, and it should be several seconds shorter than any database or infrastructure-imposed connection time limit.
  • A value of 0 indicates no maximum lifetime (infinite lifetime), subject of course to the idle timeout setting. The minimum allowed value is 30000ms (30 seconds).

Additional Information

did-this-article-resolve-your-issue

legacy-knowledge-base