Step-by-Step Guides์ถœ์ฒ˜: DigitalOcean์กฐํšŒ์ˆ˜ 1

How To Add Swap Space on Ubuntu

By Brian Boucheron
2026๋…„ 3์›” 12์ผ
**How To Add Swap Space on Ubuntu**

Introduction When a server runs out of RAM, the kernel can kill processes (OOM kills), crash applications, or refuse new connections. Swap space gives the system a disk-backed fallback so it can move less-used data out of RAM and keep the system running under memory pressure. On cloud VPS instances with fixed RAM, adding swap is a standard way to reduce the risk of out-of-memory failures without immediately upgrading the droplet. This guide shows how to add swap on Ubuntu using a swap file: create the file, enable it, make it persistent across reboots, and tune kernel settings. All steps work without a reboot and apply to Ubuntu 22.04 and later versions...

---

**[devsupporter ํ•ด์„ค]**

์ด ๊ธฐ์‚ฌ๋Š” DigitalOcean์—์„œ ์ œ๊ณตํ•˜๋Š” ์ตœ์‹  ๊ฐœ๋ฐœ ๋™ํ–ฅ์ž…๋‹ˆ๋‹ค. ๊ด€๋ จ ๋„๊ตฌ๋‚˜ ๊ธฐ์ˆ ์— ๋Œ€ํ•ด ๋” ์•Œ์•„๋ณด์‹œ๋ ค๋ฉด ์›๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.