Phuong Nguyen Asked: 2015-01-03 01:27:37 +0800 CST2015-01-03 01:27:37 +0800 CST 2015-01-03 01:27:37 +0800 CST What happen if a systemd service reach its MemoryLimit? 772 Does systemd restart the service or the system just refuse to let the service allocate more memory? systemd 1 Answers Voted Best Answer David Schwartz 2015-01-03T02:22:04+08:002015-01-03T02:22:04+08:00 Setting MemoryLimit just causes systemd to run the service in a cgroup with the configured memory limit. It's up to the service to decide how to handle resource exhaustion.
Setting
MemoryLimit
just causessystemd
to run the service in a cgroup with the configured memory limit. It's up to the service to decide how to handle resource exhaustion.