[Linux Fundamentals #4] The Essential Lifeline for Low-Spec Servers: Swap Memory Setup Guide

(For the Korean version, click here) Introduction: Why Services Stop Without Warning When operating AWS Lightsail or small cloud instances (with 1GB to 2GB of RAM), the most common issue you’ll face is the ‘DB going down due to out-of-memory’ errors. (Though I haven’t personally encountered this on AWS Lightsail yet!) When available memory is … 더 읽기

[리눅스 실무 기초 #4] 저사양 서버의 필수 생명줄: Swap 메모리 설정 가이드

서론: 서비스가 예고 없이 멈추는 이유 AWS Lightsail이나 소형 클라우드 인스턴스(RAM 1GB~2GB)를 운영하다 보면 가장 자주 마주치는 문제가 바로 ‘메모리 부족으로 인한 DB 다운’ 현상입니다.(AWS Lightsail에서는 아직 이 현상을 확인하지는 않았어요) 리눅스 커널은 가용 메모리가 고갈되면 시스템 보호를 위해 특정 프로세스를 강제로 종료하는 OOM(Out of Memory) Killer를 작동시키는데, 대개 그 타겟은 메모리 점유율이 높은 MySQL이나 … 더 읽기