1 S postgres 5038 876 0 80 0 - 11962 sk_wai 09:57 ? 00:00:00 postgres: postgres my_app ::1(45035) idle
1 S postgres 9796 876 0 80 0 - 11964 sk_wai 11:01 ? 00:00:00 postgres: postgres my_app ::1(43084) idle 我见过很多这样的人。我们正在尝试修复我们的连接泄漏。但同时,我们希望为这些空闲连接设置一个超时,可能最大为5分钟。
发布于 2020-12-14 20:11:53
另一个选项是将此值设置为"tcp_keepalives_idle“。有关详细信息,请参阅documentation https://www.postgresql.org/docs/10/runtime-config-connection.html。
https://stackoverflow.com/questions/13236160
复制相似问题