Print
카테고리: [ Amazon Web Services ]
조회수: 1992

1. 개요

Lightsail 인스턴스에서 php-fpm이 CPU를 과점하였으며 정상적으로 서비스 되지 않음


2. 현상

2-1. top

top - 18:56:54 up 15 min,  1 user,  load average: 15.92, 8.49, 4.62
Tasks: 111 total,   6 running, 105 sleeping,   0 stopped,   0 zombie
%Cpu(s):  8.8 us,  0.3 sy,  0.0 ni,  0.0 id,  0.0 wa,  0.0 hi,  0.0 si, 90.9 st
KiB Mem:    500204 total,   273904 used,   226300 free,    15832 buffers
KiB Swap:   649996 total,    17036 used,   632960 free.   125364 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
 2281 daemon    20   0  281488  36440  20340 R 26.9  7.3   1:59.65 .php-fpm.bin
 2309 daemon    20   0  281216  38736  23180 R 26.9  7.7   1:57.97 .php-fpm.bin
 2310 daemon    20   0  281260  39944  24356 R 26.9  8.0   1:55.56 .php-fpm.bin
 2274 daemon    20   0  282776  42128  24636 R 15.8  8.4   1:07.00 .php-fpm.bin

2-2. 웹 서버 로그

[Mon Jan 08 18:36:37.306862 2018] [proxy_fcgi:error] [pid 13490:tid 140210104870656] (70007)The timeout specified has expired: [client 12.34.56.78:46334] AH01075: Error dispatching request to : (polling)

3. 해결책

3-1. 웹 서버 리부팅

3-2. php 설정 변경

3-2. 서버 리부팅

3-4. AWS 콘솔에서 stop -> start