PortGate

Blueprints · Systemd & Agents

Beginner 10 min · systemd

systemd memory cap

Stages a MemoryMax so one service cannot consume the whole VPS. Pick the number for this host.

Live config

Baked-in protections

Step 1 · ini

Memory drop-in

/root/portgate-blueprints/memory.conf

Copy into the service drop-in directory after you choose a size.

[Service]
MemoryMax=512M

Step 2 · bash

Read-only check

/root/portgate-blueprints/memory-check.sh

Prints status. It does not change the service.

#!/bin/sh
set -eu
free -h