首页 > 代码库 > 提示内存不足,其它服务不能运行
提示内存不足,其它服务不能运行
环境说明:
提示: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” 博客,谢绝转载!
提示内存不足,其它服务不能运行
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。