[root@vmsvr ~]# su - appuser
su: cannot set user id: Resource temporarily unavailable
해당 계정에 대한 오픈 파일 개수, 프로세스 개수 확인
[root@vmsvr ~]# lsof | wc -l
38917 // 전체 파일 오픈 갯수
[root@vmsvr ~]# lsof -u suser | wc -l
33030 // appuser 계정으로 오픈한 파일 갯수
[root@vmsvr ~]# ps -eLf | grep -i java | wc -l
8216 // java 프로세스로 실행중인 개수
2047 // oracle 프로세스로 실행중인 개수(/etc/security/limits.conf 상 soft nproc 값 이상 발생)
시스템 설정 변경(/etc/sysctl.conf)
시스템에 설정되어진 nofile 값과, nporc 값
=================================================
* soft nofile 8192
* hard nofile 65535
* soft nproc 8192
* hard nproc 16384
=================================================
▶ ulimit의 Hard와 Soft의 차이점
- ulimit은 프로세스의 자원 한도를 설정하는 명령어
- Soft 한도는 새로운 프로세스가 생성될 때 기본적으로 적용되는 한도를 의미
- Hard 한도는 Soft 한도에서 최대 늘릴 수 있는 한도를 의미
appuser 계정으로 login 을 가능하게 하도록 변경한 값.
=================================================
* soft nofile 65535
* hard nofile 65535
* soft nproc 16384
* hard nproc 16384
=================================================
'Linux > CentOS & RHEL' 카테고리의 다른 글
[Tip] I/O Scheduler Configuration(cfq, deadline) (0) | 2020.09.28 |
---|---|
[Network] IP Alias 설정 - eth (0) | 2020.09.28 |
[Tip] Linux Application core 생성 (0) | 2020.09.23 |
[Network] CentOS / RHEL Bridge 설정 (0) | 2020.09.23 |
[Network] Bonding 구성 인터페이스 교체 절차 (0) | 2020.09.18 |