Reliability · 8 min read · Intermediate
Monitoring Uptime, Disk Space & Memory
Catch disk-full crashes, memory leaks, and SSL issues before users ever notice.
What you'll learn
- Monitor `/api/health` externally every 5 minutes (e.g. UptimeRobot)
- Check `df -h` and `journalctl --disk-usage` periodically
- Keep RAM lean by avoiding unnecessary heavy background services
Overview
Catch disk-full crashes, memory leaks, and SSL issues before users ever notice.
Code Example
# Quick server health snapshot
df -h / # disk usage (alert above 80%)
free -h # RAM & swap usage
uptime # CPU load averages
Key Takeaways
- Monitor
/api/healthexternally every 5 minutes (e.g. UptimeRobot) - Check
df -handjournalctl --disk-usageperiodically - Keep RAM lean by avoiding unnecessary heavy background services
Quick Check
Check Your Understanding
Score: 0 / 1
1. What happens to a database-backed web app when the server root disk hits 100% full?
Study Workspace
Finished this lesson?
Your progress is saved locally in your browser, no account needed.