Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
Tags
- http
- cmd
- API
- ibatis
- MariaDB
- oracle
- 컨트롤러
- 프로세스
- Linux
- Database
- java
- 오블완
- 키보드
- 안드로이드 스튜디오
- START WITH
- 톰캣
- HTML
- integer
- letterspacing
- 스레드
- 스레드 덤프
- 삼성증권
- MySQL
- Tomcat
- 영상편집
- Docker
- equals
- wsdl
- JDBC
- 티스토리챌린지
Archives
- Today
- Total
블로그 이름
[centOS] java.io.IOException: 열린 파일이 너무 많음 본문
java.io.IOException: 열린 파일이 너무 많음
원인
> file descriptor 의 개수를 초과하여 발생
> 시스템에 필요한 FD(File Descriptor/openfiles) 수보다 계정의 User Limit이 작게 설정되어 있을 경우에 발생
파일 열기 무제한 설정
1. Hard limit, Soft limit 확인
$ ulimit -Hn
$ ulimit -Sn
2. limit 변경
$ cat /proc/sys/fs/file-max 로 나오는 값보다 적게 /etc/security/limits.conf 를 변경
$ sudo vi /etc/security/limits.conf
/etc/security/limits.conf 맨 밑의 숫자를 변경 후 저장
ex)
root hard nofile 50000
root soft nofile 50000
3. 변경된 limit 확인
로그아웃 및 재로그인 후 1번 명령어 재입력하여 확인
'개발 > 리눅스' 카테고리의 다른 글
| [Linux] sudo 명령어에서 root 권한이 없을 때 (... is not in the sudoers file. this incident will be reported) (0) | 2024.07.25 |
|---|---|
| [Linux] 우분투 ubuntu 리눅스 터미널 안열림 현상 (0) | 2024.07.25 |
| [centOS8] SFTP 서버에 키 파일 인증하기 (2) | 2024.04.24 |
| 리눅스 yum 명령어가 안 될 때 (0) | 2024.04.22 |
| 리눅스 기초 명령어 (1) | 2023.08.20 |