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

这样才能对其他用户生效

如此就可以解决问题

原文地址:https://www.cnblogs.com/atomicbomb/p/7239115.html