linux fork: retry: 资源临时不可用
linux fork: retry: 资源暂时不可用
centos6.5使用su切换用户时,出现:fork: retry: 资源暂时不可用,java程序没法正常启动。
网上查到的解决方式:
cd /etc/security/limits.d有个文件vi 90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 1024
修改为
* soft nproc 65535
或者注释掉。