cleardmitri
Moderator
OP
Moderator
- Joined:
- Jun 2024
- Posts:
- 124
- From:
- Riga, LV
Uptime Kuma runs on Node. Node is fat. 512MB is tight.
Solution: 1GB swap, vm.swappiness=10, limit Node heap.
# /etc/sysctl.d/99-swap.conf
vm.swappiness=10
vm.vfs_cache_pressure=200
# /etc/systemd/system/uptime-kuma.service
ExecStart=/usr/bin/node --max-old-space-size=256 /opt/uptime-kuma/server/server.js
Install:
1. Add 1GB swapfile
2. Clone to /opt
3. npm install --production
4. Systemd unit with memory limit
5. nginx reverse proxy, SSL via certbot
Monitors 50+ targets on my CloudCone 512MB VPS. CPU idle at 4%. Swap used: 340MB stable.
Do not use Docker. Overhead kills it.
No logs, no proof. I have logs.
haroldgsm
Member
Grumpy Old Sysadmin
- Joined:
- May 2024
- Posts:
- 329
- From:
- Ohio, US
Back when Nagios was the only game in town, we ran monitoring on 64MB RAM. Kids these days need a web UI with emoji status indicators and push notifications to three apps. Mark my words: this Kuma thing will be abandonware in eighteen months, just like the last seven Node monitoring projects. The swap tuning is sound, though. We did the same with oom_adj on critical processes. Some things don't change.
IPv4, IRC, and irssi — fight me
Doug
Member
New Jersey
- Joined:
- Jul 2024
- Posts:
- 271
- From:
- New Jersey, US
Monit watching kuma is perfect lol
grabs popcorn, checks /r/drama