ulimit -a

ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 62357
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 4096
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

系统允许创建的最大进程数量即是max user processes 这个参数。

我们可以使用 ulimit -u 4096 修改max user processes的值,但是只能在当前终端的这个session里面生效,重新登录后仍然是使用系统默认值。
正确的修改方式是修改/etc/security/limits.d/90-nproc.conf文件中的值。先看一下这个文件包含什么:

$ cat /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning. * soft nproc 4096

我们只要修改上面文件中的4096这个值,

最新文章

  1. MS SQL 错误:The operation could not be performed because OLE DB provider "SQLNCLI10" for linked server "test" was unable to begin a distributed transaction.
  2. webvnc利器-noVNC集成实战
  3. TCP状态变迁图
  4. jeasyUI属性列表
  5. Android_AnimationDrawable介绍及使用
  6. 线程本地变量ThreadLocal
  7. Mac Zip命令
  8. Angularjs里面跨作用域
  9. [转]配置 VIM 的 Go 语言开发环境
  10. .net core 使用X509 私钥加密请求
  11. 【POJ3683】Priest John's Busiest Day
  12. Jenkins持续集成环境, 如何自定义 maven 仓库
  13. HBase作为存储方案
  14. 在QT中使用C/C++, 在linux下生成 .so, 并调用 .so
  15. Python练习一
  16. 内置函数-fliter
  17. Centos上SSH连接过慢原因
  18. Git的安装和配置用户名和密码
  19. 设计模式(八)Proxy Parttern 代理模式
  20. MySQL存储过程-->通过游标遍历和异常处理迁移数据到历史表

热门文章

  1. HTML5-SQLLite连接
  2. GridView 获取列字段的几种途径
  3. C语言-字符串
  4. 工作总结 a标签 <a href="/meetingtheme">Back to List</a> 返回上一级 指向 控制器 默认Index @Html.ActionLink("Edit59", "Edit", new { id = item.ID }) 默认当前控制器
  5. Timer与ScheduledExecutorService间的抉择
  6. Coursera上的machine learning学完啦
  7. XMPP系列(三)---获取好友列表、加入好友
  8. versions 忽略 xcuserdata 目录
  9. 在hibernate3中如何利用HQL语句查询出对象中的部分数据并且返回该对象?
  10. 【Python】selenium调用IE11浏览器,报错“找不到元素”NoSuchWindowException: Message:Unable to find element on closed window