systemd重启服务还是系统拒绝让服务分配更多内存?
设置MemoryLimit只会导致systemd在configuration了内存限制的cgroup中运行服务。 服务决定如何处理资源耗尽。
MemoryLimit
systemd