码迷,mamicode.com
首页 > 其他好文 > 详细

提示内存不足,其它服务不能运行

时间:2017-05-17 15:20:19      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:following   command   memory   linux   

环境说明:

提示: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” 博客,谢绝转载!

提示内存不足,其它服务不能运行

标签:following   command   memory   linux   

原文地址:http://hhslinux.blog.51cto.com/5656312/1926540

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!