0

My site crashes from time to time due to lack of RAM. 1 I have been allocated 2 gigabytes of RAM by hosting. When goods are being uploaded, either a lot of people visit the site, or for some reason there is a jump in RAM - the norm is exceeded and the site throws out a 504 or 500 error. Traffic on the site is not large 500-600 sessions per day. Tell me what I need to do to optimize the site and not get these errors at the maximum speed of the site. Hosting settings host1 host2 host3 host4 host5 wp settings wp-includes/default-constants default-constants In wp config

define( 'WP_CACHE', true ); // Added by WP Rocket
define('DISABLE_WP_CRON', true);
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_DISPLAY', false );
define('WP_MEMORY_LIMIT', '512M');
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

I tried to set the values ​​to 2048M, but it didn't help much. If you set it up differently, can you achieve site stability? Or is it necessary to switch to a more expensive tariff with more RAM? Or is it enough to connect OPcache and Memcache or Redis?

0 Answers0