We have a java application that uses Postgres v11 along with PgBouncer for connection pooling. When we keep the application idle for 15 mins, the connection drops(JDBC). The database is hosted on Amazon AWS
The same is observed in Pgadmin.
We tried TCP keepalive and few others. Nothing works.
Any ideas?