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
번호 제목 글쓴이 날짜 조회 수
21 XpressEngine XE 1.5 캐시 사용으로 성능 극대화 JaeSoo 2012.05.09 4102
20 제로보드XE(Xpressengine) Anti-accessXE:기본설정 JaeSoo 2012.07.26 3922
19 Nginx 웹서버 성능분석 JaeSoo 2012.11.20 5734
18 강력한 웹서버 NGINX JaeSoo 2012.11.20 5069
17 NGINX 소개와 사용 현황 JaeSoo 2012.11.20 4819
16 Xpress engine nginx rewrite 설정, 짧은주소 (xpressengine) JaeSoo 2012.11.20 65780
15 Nginx 와 Apache 동시사용 설정 (영문) JaeSoo 2013.04.08 8866
14 Nginx HttpRewriteModule JaeSoo 2013.04.08 2794
13 nginx 에서 htaccess 사용하기 JaeSoo 2013.04.08 2874
12 NGINX서버를 통한 다운로드 링크 형성하기(POGOPLUG SERIES 4용) JaeSoo 2013.04.08 5302
11 nginx 재시작 배치파일 JaeSoo 2013.04.12 3211
10 아파치 2.4는 러시안 강호 NGINX를 넘을 수 있는가? JAESOO 2013.05.28 2792
9 Apache vs Nginx 성능을 밝혀라! JAESOO 2013.05.28 3637
8 Nginx 설치 (간략) JAESOO 2013.06.10 1694
7 Nginx에서 php 외에 추가로 여러 확장자를 처리 방법 JAESOO 2013.06.10 2902
6 Nginx SERverSETting JaeSoo 2014.04.07 1610
5 nginx 504 gateway time-out JaeSoo 2014.04.08 1540
» Nginx Log에서 upstream timed out (110: Connection timed out) while reading response header from upstream JaeSoo 2014.04.08 1497
3 Nginx, FastCGI 지시어 및 설명 (504 Gateway Time-out 관련 설정 등) JaeSoo 2014.04.09 2220
2 504 Gateway Time-out using Nginx JaeSoo 2014.04.09 1729
Board Pagination Prev 1 2 Next
/ 2

PageViews   Today : 70 Yesterday : 2394 Total : 21713728  /  Counter Status   Today : 64 Yesterday : 1232 Total : 1142206

Edited by JAESOO

sketchbook5, 스케치북5

sketchbook5, 스케치북5

나눔글꼴 설치 안내


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

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

설치 취소