From cfdc088844cd2e3acdf5b3836a6c62e9a4c4954f Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 25 Feb 2023 20:33:07 +0100 Subject: [PATCH] Define limits for CPU and MEM resources --- templates/systemd/php-fpm@.service | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/systemd/php-fpm@.service b/templates/systemd/php-fpm@.service index 295b0de..56d29ed 100644 --- a/templates/systemd/php-fpm@.service +++ b/templates/systemd/php-fpm@.service @@ -50,5 +50,10 @@ InaccessiblePaths=-/root/ RuntimeDirectory=php RuntimeDirectoryPreserve=yes +# Resources +CPUQuota=100% +MemoryHigh=25% +MemoryMax=35% + [Install] WantedBy=multi-user.target