• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Issue Question About Setting Systemctl Limits

Ladylinux

New Pleskian
Server operating system version
Debian 11
Plesk version and microupdate number
18.0.62 #1
Hi,

I did a search here but really did not find anything.

We have a AWS Plesk Debian server and we are at version 18.0.60 Patch 1

Load is typically under 0.25 and memory is hardly used at all except the following

So we have a small WordPress site that if we switch it to PHP 8.2 almost immediately runs out of memory despite CGroups being set rather low

My best couple guesses is that Cgroups can't react as the load happens within 30 seconds

We debugged the issue to some poorly configured plugins and yay the load seems to have gone.

However this still left a nagging suspicion that for FPM cgroups are useless or just don't react fast enough

So I tried this just looking at memory usage via systemctl

systemctl show php-fpm | grep -i memory
MemoryCurrent=[not set]
EffectiveMemoryNodes=
AllowedMemoryNodes=
MemoryAccounting=yes
DefaultMemoryLow=0
DefaultMemoryMin=0
MemoryMin=0
MemoryLow=0
MemoryHigh=infinity
MemoryMax=infinity
MemorySwapMax=infinity
MemoryLimit=infinity
ManagedOOMMemoryPressure=auto
ManagedOOMMemoryPressureLimitPercent=0%
MemoryDenyWriteExecute=no

So should I even try to limit this ??

Something like

systemctl set-property php8.2-fpm MemoryLimit=128M

And others ??

As .ini does not seem to affect this

Or am I just looking at this wrong ??

Thanks!!

Ladylinux
 
Back
Top