nginx 오류: socket () failed (24: 너무 많은 열 린 파일) upstream 에 연결 하 는 동안
1485 단어 nginx
nginx 를 통 해 두 노드 를 부하 하 는 rabbitmq 는 자바 코드 로 500 개가 넘 는 연결 을 만 들 때 (내 기 계 는 기본적으로 이렇게 만 들 수 있 습 니 다) 오류 가 발생 했 습 니 다.
com.rabbitmq.client.ShutdownSignalException: connection error
java.net.SocketException: Software caused connection abort: recv failed
nginx 로그 / var / log / nginx / error. log 를 보 니 오류 가 발생 했 습 니 다
socket() failed (24: Too many open files) while connecting to upstream
해결 하 다.<domain> <type> <item> <value>
* soft nofile 204800
* hard nofile 204800
worker_processes 1;
worker_rlimit_nofile 20480;
nginx 재 부팅 후 문제 해결