When the nofile is set to unlimited in /etc/security/limits.conf file the user cannot login


user  soft nofile 1024
user  hard nofile unlimited

# su - user
could not open session

决议

This is a limit of  setrlimit().  The limit is 1048576.   So,  set limit less 1048577.

根源

That"s because the kernel have the following definition in ./linux/fs.h.

#define NR_OPEN (1024*1024)     /* Absolute upper limit on fd num */
时间: 2024-08-09 10:34:51

When the nofile is set to unlimited in /etc/security/limits.conf file the user cannot login的相关文章

HBASE遇到的java.lang.OutOfMemoryError: unable to create new native thread解决方法

简单分享一下,类似问题的解决方法 刚才在某机器上上xxx用户下压测时遇到这个问题,连xxx都进不去了 说明xxx用户下无法创建跟多的线程了(当然root用户没这个问题) 系统能够创建的最大线程数:(MaxProcessMemory - JVMMemory – 系统内存) / (ThreadStackSize) = Number of threads 有两种方式: 减少xxx下的ThreadStackSize 增加xxx下的nproc数量 修改 [[email protected]]$ ulimi

Linux服务器报错too many open files错误解决方案

1.本质解决方案按照oracle的安装脚本中以下几项文件进行相应配置: cp /etc/security/limits.conf /etc/security/limits.conf.bak echo "oracle soft nproc 2047" >>/etc/security/limits.conf echo "oracle hard nproc 16384" >>/etc/security/limits.conf echo "

Linux系统调优和磁盘读写测试

直接分享干货!供大家参考,欢迎提出更好的建议,学习是无止境的,总结更是一种过程美的体现. 关于RHEL6中ulimit的nproc限制 [email protected] ~]# cat /etc/security/limits.d/90-nproc.conf *          soft    nproc     32000 *          hard    nproc     32000 root       soft    nproc     unlimited *        

oracle 数据库安装环境,要求大汇总

 Oracle Database (RDBMS) on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2) (文档 ID 169706.1) 转到底部 修改时间:2014-7-10类型:BULLETIN Jump to: For 12c requirements

oracle 数据库安装环境,需要大汇总

 Oracle Database (RDBMS) on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2) (文档 ID 169706.1) _afrLoop=509703735454401&id=169706.1&_afrWindowMode=0&

经常遇到的java.lang.OutOfMemoryError: unable to create new native thread解决方法

简单分享一下,类似问题的解决方法 刚才在某机器上上xxx用户下压测时遇到这个问题,连xxx都进不去了 说明xxx用户下无法创建跟多的线程了(当然root用户没这个问题) 系统能够创建的最大线程数:(MaxProcessMemory - JVMMemory – 系统内存) / (ThreadStackSize) = Number of threads 有两种方式: 减少xxx下的ThreadStackSize 增加xxx下的nproc数量 修改 [[email protected]]$ ulimi

简易elasticsearch服务器搭建

1:下载和解压:wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.2.tar.gz2:配置config/elasticsearch.ymlnetwork.host: 10.99.32.16http.port: 9200path.logs: /root/elasticsearch/logpath.data: /root/elasticsearch/datanode.name: node-1clus

Native memory allocation (mmap) failed to map 142606336 bytes for committing reserved memory.

这里写链接内容 问题描述 Java程序运行过程中抛出java.lang.OutOfMemoryError: unable to create new native thread,如下所示: [java] view plain copy java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(T

linux基础优化

[[email protected] oldboy]# for oldboy in `chkconfig --list |grep "3:on" |awk '{print $1}' |grep -vE "crond|network|sshd|rsyslog"`;do chkconfig $oldboy off;done [[email protected] oldboy]# chkconfig --list |grep "3:on" crond