环境

linux RHEP 7.+

su - user 提示 :无法设置用户ID,资源暂时不可用

 

检查 cat /etc/security/limits.d/90-nproc.conf

*     soft   nproc 16384
root soft   nproc  unlimited

或者ulimit -u 显示用户最大的线程数限制

检查当前用户的线程数: pstree -p | wc -l

检查某个进程的线程数:ps -mp pid  | wc -l

 

处理方法:

修改/etc/security/limits.d/90-nproc.conf  中的 16384为更大的数字

相关文章:

  • 2021-09-18
  • 2022-12-23
  • 2021-12-23
  • 2022-01-27
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2022-01-05
猜你喜欢
  • 2022-01-23
  • 2021-06-09
  • 2021-06-24
  • 2021-08-18
相关资源
相似解决方案