Step-by-Step Guides์ถ์ฒ: DigitalOcean์กฐํ์ 1
How To Add Swap Space on Ubuntu
By Brian Boucheron2026๋
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์์ ์ ๊ณตํ๋ ์ต์ ๊ฐ๋ฐ ๋ํฅ์ ๋๋ค. ๊ด๋ จ ๋๊ตฌ๋ ๊ธฐ์ ์ ๋ํด ๋ ์์๋ณด์๋ ค๋ฉด ์๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์ธ์.
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์์ ์ ๊ณตํ๋ ์ต์ ๊ฐ๋ฐ ๋ํฅ์ ๋๋ค. ๊ด๋ จ ๋๊ตฌ๋ ๊ธฐ์ ์ ๋ํด ๋ ์์๋ณด์๋ ค๋ฉด ์๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์ธ์.