mirror of
https://github.com/DanWin/hosting.git
synced 2025-08-13 17:29:18 +02:00
Introduce CPU and Memory resource control for php and all child-processes
This commit is contained in:
parent
98d6a46aff
commit
bdf26c8d00
2 changed files with 7 additions and 1 deletions
|
@ -26,6 +26,9 @@ BindPaths=/var/log/
|
||||||
BindPaths=/var/run/php/
|
BindPaths=/var/run/php/
|
||||||
BindPaths=/run/php/
|
BindPaths=/run/php/
|
||||||
InaccessiblePaths=/root/
|
InaccessiblePaths=/root/
|
||||||
|
CPUQuota=100%
|
||||||
|
MemoryHigh=25%
|
||||||
|
MemoryMax=35%
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -22,13 +22,16 @@ ProtectKernelModules=true
|
||||||
ProtectControlGroups=true
|
ProtectControlGroups=true
|
||||||
LockPersonality=true
|
LockPersonality=true
|
||||||
SystemCallArchitectures=native
|
SystemCallArchitectures=native
|
||||||
BindPaths=/var/www/
|
|
||||||
BindPaths=/var/log/
|
BindPaths=/var/log/
|
||||||
BindPaths=/var/run/php/
|
BindPaths=/var/run/php/
|
||||||
BindPaths=/run/php/
|
BindPaths=/run/php/
|
||||||
BindPaths=/var/lib/php/sessions
|
BindPaths=/var/lib/php/sessions
|
||||||
BindPaths=/var/local/squirrelmail/
|
BindPaths=/var/local/squirrelmail/
|
||||||
|
BindPaths=/var/www/
|
||||||
InaccessiblePaths=/root/
|
InaccessiblePaths=/root/
|
||||||
|
CPUQuota=100%
|
||||||
|
MemoryHigh=25%
|
||||||
|
MemoryMax=35%
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue