4 ms·
systemd lets you configure soft and hard limits on a per-service level, almost identically to launchd. See MemoryHigh= and MemoryMax= [1]. This does depend on
by TheDong 7y ago
systemd lets you configure soft and hard limits on a per-service level, almost identically to launchd. See MemoryHigh= and MemoryMax= [1].
This does depend on cgroupsv2, but it works on most modern distros.
[1]: https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html#MemoryLow=bytes https://www.freedesktop.org/software/systemd/man/systemd.res...
- azinman2 7y agoOh nice! Thanks for the pointer!