owner: gmikcon status: active last_reviewed: "2026-10-08" review_interval: "90d" confidence: high
Home LAN media server running Jellyfin — the family media library and streaming backend (watched via Jellyfin clients; torrent downloads arrive via Transmission elsewhere).
jellyfin192.168.1.153ubuntu (sudo with same password)jellyfin (192.168.1.153) — SSH ubuntu (id 84a01b86-ec1d-41d1-927b-253f9b4c1770, SSH = sudo password; verified by SSH login 2026-10-07)/ 29 GB (~48% used), /home 161 GB (~0.5% used)jellyfin.service — Jellyfin Media Server, HTTP port 8096 (health endpoint /health returns 200 "Healthy")ssh.service — port 22hard-monitor.service — GHard Monitor agentjellyfin, id 39, status online, interval 30s.Diagnosed by navi rei via SSH after repeated ram_high/swap_high/swap_recovered events:
ffmpeg process spawned by Jellyfin (uid 109) grows to ~14.5–14.8 GB RSS on the 16 GB box; the kernel OOM-killer kills it, and systemd restarts the service if needed. Swap fills to 100% during the ramp-up and then drains over ~24 h — producing daily swap_high → swap_recovered event pairs on the panel./etc/cron.d, user crontabs and systemd timers are standard; the trigger is Jellyfin activity itself (library scan with ~140 ffprobe calls + evening remux playback sessions).ffmpeg child; jellyfin.service itself usually survives (main PID unchanged, 40+ days uptime), logs an ffmpeg image extraction failed error and continues. Playback interruptions are brief.After each OOM cycle the swapfile stays ~100% full with cold pages (mostly jellyfin) and drains only over ~24 h, producing a daily swap_high warning. Safe manual cleanup, applied 2026-10-08 21:22 UTC by navi rei:
free -m (need available > swap used; after OOM RAM is ~1.3/16 GB, so 564 Mi–1.3 Gi swap fits easily).sudo swapoff /swapfile && sudo swapon /swapfile — forces all swap pages back into RAM, swap usage drops to 0.free -m, swapon --show, curl -s -o /dev/null -w '%{http_code}' http://localhost:8096/health (expect 200), systemctl is-active jellyfin.service.Result 2026-10-08: swap 0 B used, RAM used 1.25→1.75 GB, service healthy, no degradation. Do NOT run swapoff while RAM is under pressure.
jellyfin.service: MemoryMax=4G (or similar) so a runaway ffmpeg is capped before global OOM. Note: the existing drop-in /etc/systemd/system/jellyfin.service.d/jellyfin.service.conf is the vendor default (all options commented out) — a new drop-in file (e.g. memlimit.conf) is the cleanest place.vm.swappiness to 10 (swap currently fills to 100% before OOM fires).-vf fps=0.1 ... -c:v mjpeg over /tmp/jellyfin/<id>/%08d.jpg) — disabling or limiting trickplay generation for the large One Piece library is a targeted candidate.swap_high warning for 2026-10-08 can be treated as resolved.