AMD EPYC12 min read•Updated November 2026

AMD EPYC VPS for Long-Running Applications

Quick answer

To keep an application running for weeks or months on an AMD EPYC VPS, run it as a systemd service (or a container with a restart policy) so it starts at boot and restarts after crashes; cap its memory; send logs to journald with size limits; add a health check or heartbeat that alerts you if it stops making progress; and plan restarts for updates and kernel reboots. Watch memory over time to catch leaks, and handle SIGTERM so restarts are graceful and lose no work.

Some software is meant to run forever: chat bots, queue workers, websocket and game servers, trading systems, crawlers, data collectors and IoT backends. Keeping them running for a day is easy. Keeping them running for months, through crashes, memory leaks, growing logs, network hiccups and operating-system updates, needs a little engineering. A VPS is ideal for this: it is always on, and you control everything.

1. Supervise the Process

# /etc/systemd/system/collector.service
[Unit]
Description=Data collector
After=network-online.target
Wants=network-online.target

[Service]
User=collector
WorkingDirectory=/srv/collector
ExecStart=/srv/collector/venv/bin/python main.py
Restart=always
RestartSec=5
StartLimitIntervalSec=300
StartLimitBurst=10
MemoryMax=2G
TimeoutStopSec=60

[Install]
WantedBy=multi-user.target
sudo systemctl enable --now collector
systemctl status collector
journalctl -u collector -f
  • Restart=always brings it back after crashes; StartLimit* stops a crash loop from restarting forever every five seconds.
  • MemoryMax stops a leak from taking the whole server down.
  • After=network-online.target waits for networking at boot.

Do not rely on screen, tmux or nohup for production processes; they do not restart after a crash or a reboot.

2. Handle Shutdown Gracefully

systemd and Docker send SIGTERM before stopping a process. Catch it, stop accepting new work, finish or checkpoint the current task, close connections and exit. Then updates and restarts lose nothing. TimeoutStopSec sets how long the process has before it is killed.

3. Detect "Running but Stuck"

The worst failure is a process that is alive but doing nothing: a deadlock, a lost connection that never reconnects, a blocked API call with no timeout. Supervisors cannot see that. Add one of:

  • A heartbeat: the app pings a monitoring URL every few minutes; you are alerted if pings stop (push monitors in Uptime Kuma or similar).
  • A health endpoint that reports the time of the last successful unit of work.
  • systemd watchdog: with WatchdogSec=, the app must notify systemd periodically or it is restarted.

Also set timeouts on every network call and reconnect with exponential backoff.

4. Watch for Memory Leaks

Small leaks only show up over days. Track memory per process over time:

systemctl status collector | grep Memory
ps -o pid,rss,etime,cmd -C python

Graph it in your monitoring system (see our monitoring guide). If memory climbs steadily, find the leak; as a stopgap, a scheduled restart during quiet hours keeps it contained, and many worker libraries support restarting after a number of jobs.

5. Keep Logs from Filling the Disk

A process that logs a line per event writes gigabytes over months. Send output to journald and cap it (SystemMaxUse=1G in journald.conf), or rotate log files with logrotate. Log at info level in production, and avoid logging full payloads.

6. Persist State

Restarts will happen, so store anything you cannot recompute: progress markers, cursors, queues and caches you rely on. Use a database, Redis with persistence, or atomic file writes (write to a temporary file, then rename). On restart, resume from the last checkpoint.

7. Plan for Updates and Reboots

  • Automatic security updates install packages, but kernel updates need a reboot to take effect.
  • Check /var/run/reboot-required and reboot during a quiet window, monthly or as advisories require.
  • With proper supervision and graceful shutdown, a reboot is a short, routine interruption.
  • If the service cannot tolerate any interruption, run two instances on separate servers.

8. Time and Scheduling

Long-running processes that schedule work internally should use monotonic clocks for intervals and store timestamps in UTC. Keep the server clock synchronised (timedatectl shows whether NTP is active). For simple periodic tasks, systemd timers or cron may be more robust than an in-process scheduler (see our cron guide).

Typical Long-Running Workloads

WorkloadKey concern
Discord or Telegram botsReconnect after gateway disconnects; rate limits
Queue workersGraceful shutdown, retries (see our workers guide)
WebSocket serversMany open connections; file descriptor limits (LimitNOFILE)
Trading systemsClock accuracy, reconnects, restarts outside market hours
Crawlers and collectorsCheckpointing progress; politeness limits
Game serversScheduled restarts and world backups

Sizing

Size for steady-state memory plus growth over time, not just startup memory. Several small bots and workers fit on 2 vCores / 8 GB; processes holding large in-memory datasets or many connections need 16 GB or more. Keep a swap file as a safety net (see our swap guide).

Deploying Updates to Always-On Processes

Deploy new code into a new directory, then restart the service so it gracefully stops the old version and starts the new one. For processes holding many client connections, such as websocket servers, clients should reconnect automatically after the brief interruption. Keep the previous version on disk for a quick rollback, and avoid deploying during the busiest hours for services that cannot run two instances at once.

The Same Ideas in Docker

In Docker Compose, use restart: unless-stopped, set mem_limit, add a healthcheck that tests real progress, and give the container a stop_grace_period long enough to finish work after SIGTERM. Configure Docker's log driver with size limits (max-size and max-file) so container logs cannot fill the disk (see our Docker guide).

Alerts Worth Having

  • The heartbeat stopped arriving.
  • The service restarted more than a few times in an hour.
  • Memory use is close to the service limit.
  • Disk usage passed 80%.

Checklist for Always-On Processes

  1. Runs as a supervised service with restart limits and a memory cap.
  2. Handles SIGTERM and checkpoints its state.
  3. Has a heartbeat or health check with alerts.
  4. Logs are capped and rotated.
  5. Network calls have timeouts and reconnect with backoff.
  6. Reboots and deploys have been tested.
  7. Someone knows where the service runs, how to restart it and where its logs and backups are.

Work through the list once for every new always-on service before calling it production-ready; it takes minutes and prevents most night-time surprises.

SkyRainCloud Plans for This Workload

Long-running processes need steady memory more than burst CPU. The 2 vCore / 8 GB plan runs several bots or workers; choose 4 vCores / 16 GB or more when processes hold large datasets in memory or you run many of them.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

How do I keep an application running 24/7 on a VPS?
Run it as a systemd service with Restart=always, or as a Docker container with a restart policy, so it starts at boot and restarts after crashes.
Why not use screen or nohup?
They do not restart the process after a crash or reboot, and provide no resource limits or log management.
How do I detect a process that is running but stuck?
Use a heartbeat to a monitoring service, a health endpoint reporting the last successful work, or the systemd watchdog.
How do I stop a memory leak crashing my server?
Set MemoryMax on the service, monitor memory over time, fix the leak, and schedule restarts as a temporary measure.
Will reboots break my long-running app?
Not if it runs as a service, handles SIGTERM gracefully and persists its state. Reboots then become short, routine interruptions.
How often should I reboot?
When kernel updates require it, typically monthly or as security advisories dictate, in a quiet window.
How do I prevent logs from filling the disk?
Use journald with SystemMaxUse or logrotate for files, and avoid logging large payloads.
How do I handle many open connections?
Raise the file descriptor limit with LimitNOFILE in the service unit and size memory for the connections.
Can I run several bots on one VPS?
Yes. Run each as its own service with a memory limit so one cannot affect the others.
Which EPYC plan suits long-running apps?
2 vCores / 8 GB for several bots or workers; 4 vCores / 16 GB or more for large in-memory data or many connections.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning