The solution is either to make the pools earlier, when less memory needs to be copied, or to work harder at sharing the largest objects. Or, of course, add more memory (perhaps just virtual memory, i.e., swap space) to the system.
解决:
排查发现原因:系统的pid_max不够用了,修改最大进程数后系统恢复
- 修改最大进程数后系统恢复
echo 1000000 > /proc/sys/kernel/pid_max
echo 1493909 > /proc/sys/kernel/pid_max
ps:
- 永久生效
echo "kernel.pid_max=1000000 " >> /etc/sysctl.conf
sysctl -p
https://blog.csdn.net/zqz_zqz/article/details/53384854
- 永久生效
编辑文件 /etc/sysctl.conf 添加:
vm.overcommit_memory=1
执行sysctl -p使其生效;
ps:出现: chunk = read(handle, remaining)
ConnectionResetError: [Errno 104] Connection reset by peer
Process finished with exit code 137 (interrupted by signal 9: SIGKILL)