标签:following command memory linux
环境说明:
提示:fork: Cannot allocate memory
解决方法:
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
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” 博客,谢绝转载!
标签:following command memory linux
原文地址:http://hhslinux.blog.51cto.com/5656312/1926540