文末有彩蛋,这么多年从来没这样处理过问题
背景
操作系统是 centos 6,RabbitMQ 3.8.1.
服务器突然无法连接,重启后查看/var/log/messages,报错日志如下:
epmd: erlang mapper daemon cant fork 2'nd time Cannot allocate memoryepmd: erlang mapper daemon cant fork 2'nd time Cannot allocate memoryepmd: erlang mapper daemon cant fork 2'nd time Cannot allocate memoryepmd: erlang mapper daemon cant fork 2'nd time Cannot allocate memorysshd[1121]: error: fork: Cannot allocate memorysshd[1121]: error: fork: Cannot allocate memorysshd[1121]: error: fork: Cannot allocate memorysshd[1121]: error: fork: Cannot allocate memorysshd[1121]: error: fork: Cannot allocate mem