首页 > 代码库 > -bash: fork: Cannot allocate memory

-bash: fork: Cannot allocate memory

linux -bash: fork: Cannot allocate memory

执行命令显示: -bash: fork: Cannot allocate memory

排查发现原因:系统的pid_max不够用了


echo 1493909 > /proc/sys/kernel/pid_max


执行命令后,系统正常

本文出自 “kan” 博客,请务必保留此出处http://12899802.blog.51cto.com/12889802/1949639

-bash: fork: Cannot allocate memory