[Part 3] The Last Piece of the Puzzle: Trimming Nginx & PHP-FPM for 512MB Servers

We’ve successfully put MariaDB on a strict diet, but don’t pop the champagne just yet. In the cramped 512MB “apartment” of a $5 VPS, Nginx, PHP-FPM, and MariaDB have to live together. If one gets greedy, the OOM (Out of Memory) Killer will show up and start swinging its scythe. Today, we’re going to tighten … 더 읽기

[Linux] LEMP 스택의 마지막 퍼즐: PHP-FPM & Nginx 메모리 다이어트

MariaDB 설정으로 급한 불은 껐지만, 아직 안심하기엔 이릅니다. 512MB라는 좁은 방에 MariaDB와 PHP-FPM이 같이 살다 보면, 어느 한쪽이 욕심을 부리는 순간 서버는 바로 ‘OOM Killer(Out of Memory)’의 칼춤을 보게 됩니다. 오늘은 웹 서버의 살림꾼인 Nginx와 메모리 먹는 하마가 되기 쉬운 PHP-FPM을 아주 타이트하게 조여보겠습니다. Nginx: “너는 딱 하나만 해” 사실 Nginx 자체는 매우 가볍습니다. 하지만 … 더 읽기