Linux执行命令unable to create new native thread问题

对于系统的Linux的问题

主要是线程数有限制max user processes 参数限制

修改这个参数涉及到修改两个文件

vi /etc/security/limits.conf 

增加如下内容:

*               soft    nproc           10240
*               hard    nproc           10240
*               soft    nofile          10240
*               hard    nofile          10240

 

vi /etc/security/limits.d/90-nproc.conf 

修改如下:

*          soft    nproc     10240

这样才能对其他用户生效

 

如此就可以解决问题

 

posted @ 2017-07-26 13:03  一心行走  阅读(4602)  评论(0编辑  收藏  举报