关于服务进程申请线程数量的限制unable to create new native thread

在跑某个web服务的时候出现了以下异常

unable to create new native thread

关于服务进程申请线程数量的限制unable to create new native thread
运行此服务的用户能申请的最大的线程数量是1024
关于服务进程申请线程数量的限制unable to create new native thread
关于服务进程申请线程数量的限制unable to create new native thread

修改配置文件

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

关于服务进程申请线程数量的限制unable to create new native thread

 改完即可生效

关于服务进程申请线程数量的限制unable to create new native thread