提示内存不足,其它服务不能运行
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了提示内存不足,其它服务不能运行相关的知识,希望对你有一定的参考价值。
环境说明:
提示:fork: Cannot allocate memory
解决方法:
Display Current Process Identifiers Limit On a Linux Based Systems
Type the following command at shell prompt:$ sysctl kernel.pid_max
OR$ cat /proc/sys/kernel/pid_max
OR$ sysctl kernel.pid_max
Sample outputs:
kernel.pid_max = 32768
Allow for more PIDs on a Linux based systems
up to 222 = 4,194,304
Type the following command:# sysctl -w kernel.pid_max=4194303
OR# echo 4194303 > /proc/sys/kernel/pid_max
You need to append the following config directive to your /etc/sysctl.conf kernel.pid_max = 4194303
Please note that this hack is only useful for a large and busy server; don’t try this on an old kernel or on desktop systems.
本文出自 “hhslinux” 博客,谢绝转载!
以上是关于提示内存不足,其它服务不能运行的主要内容,如果未能解决你的问题,请参考以下文章