问题遇到的现象和发生背景
我的postgresql数据库在docker中端口映射为25433->5432
但是总是有时连接数据库或者查询sql语句发生如下错误:
server closed the connection unexpectedly
This probably means the server terminated abnormallybefore or while processing the request.
我的解答思路和尝试过的方法
- 查看容器日志
2022-06-23 05:37:50.613 UTC [18492] LOG: could not receive data from client: Connection timed out
- 服务器内存正常
我想要达到的结果
我现在不知道可以从那些方面查询该问题,希望各位同学能够提供一些建议。