6👍
✅
Make sure it is actually old connections that are not closed and not new connections that pile up because some part of your application can’t handle the load. Have a look at the individual connections, e.g. with SELECT * FROM pg_stat_activity;
Source:stackexchange.com