RadarURL
Skip to content
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

분명히 램이 넉넉한 서버에서는 이런일이 발생하지 않았는데, 램이 부족한 서버에서는

2012/11/16 16:59:53 [error] 10689#0: *25307 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 211.106.111.108, server: o.mintech.kr, request: "GET / HTTP/1.1", upstream: "http://unix:/home/wangsy/www/mintoffice/current/tmp/sockets/unicorn.sock:/", host: "o.mintech.kr"

에러가 마구 발생. 그리고, 서비스가 안됨.

인터넷을 뒤져서 방법을 찾았으나, 확실히 무엇이 해결책인지는 모르겠지만, 일단은

/etc/sysctl.conf 파일에 아래 내용을 추가

net.core.rmem_max = 16777216
net.core.rmem_default = 16777216
net.core.netdev_max_backlog = 262144
net.core.somaxconn = 4096

/etc/nginx/nginx.conf 파일에 아래 내용을 추가

user www-data;
worker_processes 4;
worker_rlimit_nofile 10240;
pid /var/run/nginx.pid;

아마도 위 worker_rlimit_nofile 값이 가장 유력한 원인으로 추정됨.

 

출처 : http://wiki.wangsy.com/unicorn

?

List of Articles
번호 제목 글쓴이 날짜 조회 수
10 504 Gateway Time-out using Nginx JaeSoo 2014.04.09 1745
9 Nginx, FastCGI 지시어 및 설명 (504 Gateway Time-out 관련 설정 등) JaeSoo 2014.04.09 2234
» Nginx Log에서 upstream timed out (110: Connection timed out) while reading response header from upstream JaeSoo 2014.04.08 1511
7 nginx 504 gateway time-out JaeSoo 2014.04.08 1555
6 Nginx SERverSETting JaeSoo 2014.04.07 1624
5 Nginx에서 php 외에 추가로 여러 확장자를 처리 방법 JAESOO 2013.06.10 2917
4 Nginx 설치 (간략) JAESOO 2013.06.10 1709
3 Apache vs Nginx 성능을 밝혀라! JAESOO 2013.05.28 3653
2 아파치 2.4는 러시안 강호 NGINX를 넘을 수 있는가? JAESOO 2013.05.28 2815
1 강력한 웹서버 NGINX JaeSoo 2012.11.20 5086
Board Pagination Prev 1 Next
/ 1

PageViews   Today : 7655 Yesterday : 5037 Total : 21963707  /  Counter Status   Today : 7378 Yesterday : 4602 Total : 1190101

Edited by JAESOO

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소