zoukankan      html  css  js  c++  java
  • 非root用户执行java进程报错:fork: retry:资源暂时不可用

    vim /etc/security/limits.conf


    # End of file
    *           soft   nproc        65535
    *           hard   nproc        65535
    * hard nofile 1000000
    * soft nofile 1000000
    * soft core unlimited
    * soft stack 10240


    从参数看没有什么问题,最后搜索了下是由于CentOS 6.5版本新增了限制配置 /etc/security/limits.d/90-nproc.conf ,以保证root用户无限制。此配置会覆盖主配置文件的设定:


    # Default limit for number of user's processes to prevent 
    # accidental fork bombs. 
    # See rhbz #432903 for reasoning.


    *          soft    nproc     1024 
    root       soft    nproc     unlimited


    解决办法:删除 /etc/security/limits.d/90-nproc.conf 文件中1024那一行,或者将数字改大
  • 相关阅读:
    title中的小图标
    JS
    浏览器的差距
    浏览器的前缀
    布局
    。。。 付解决浏览器兼容问题的两种方法
    form标签
    position讲解
    标题文档流与浮动
    css层叠问题
  • 原文地址:https://www.cnblogs.com/reblue520/p/6239687.html
Copyright © 2011-2022 走看看