Legacy Knowledge Base
Published Jun. 30, 2025

Liferay instance node going into hang mode - Failed to validate connection

Written By

Pedro Henrique Goncalves da Silva

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Liferay instance node goes into hang mode and the following error appears:
    HikariPool-1 - Failed to validate connection ... (This connection has been closed.)
    ...
    Possibly consider using a shorter maxLifetime value.

Environment

  • DXP 7.4
  • PostgreSQL

Resolution

  • We strongly recommend setting this value, and it should be several seconds shorter than any database or infrastructure imposed connection time limit.
    • The minimum allowed value is 30000ms (30 seconds)

Additional Information

  • 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. A value of 0 indicates no maximum lifetime (infinite lifetime), but still subject to the idleTimeout setting.
  • References for related to the default values and modifications to the DB connection count and maxLifetime properties:

 

 

Did this article resolve your issue ?

Legacy Knowledge Base