by Default in php installation 128MB
yoast seo plugins
serer crash due to high php memory allocation & low system memory.
brute force attacks by xml -rpc php.
php fpm fool configuration
increasing max children allows php access available more than limit.
you first decided how much ailable in case of peak. to run serer stable.
128MB good for wordpress
64MB why not try.
fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2348617 bytes) in /home4/xxx/public_html/wp-includes/plugin.php on line xxx
if the errors appears try to increase php max memory limit.
How to change in dedicated serer cloud
php.ini change max memory limit
reload php -fpm
Note: shared serer serer level limit is main rule. you cannot exceed in a specific directory. but you can reduce it.
plugins won’t work to increase
wp=config php also not works because it serer admin set a limit serer level or available memory in cpu limited.
finding aerage memory usage for php process in linux terminal
or php fpm status page.
rate limit wp coron, xml rpc wp login pages to avoid brute force attacks
5206 Idle 21/Dec/2020:10:11:07 +0000 512 177 42427 POST /xmlrpc.php 230 – /var/www/html/epfologin2/xmlrpc.php 70.71 2097152
location = /xmlrpc.php {
limit_req zone=one burst=5 nodelay;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
limit_req_zone $binary_remote_addr zone=one:10m rate=3r/m;
location = /xmlrpc.php {
deny all;
}
location = \xmlrpc.php$ {
limit_req zone=one burst=2;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
XML-RPC server accepts POST requests only.