We recently upgraded our postgres version from 11 to 16 , and we are encountering the connection issue after migration sporadically . DriverManagerDataSource dataSource = new DriverManagerDataSource(getUrl(), username, getDbPassword()); dataSource.setDriverClassName("org.postgresql.Driver");
We are observing the issue as "Caused by: org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection [The connection attempt failed.] [n/a]"
We are using db3.t3.small machine which has 2GB of RAM .
Do you have any more information?
There isn't enough information here to tell what is going wrong.