Ideal Wordpress memory limit on 16 GB RAM

0

Hello!

First time question here, and probably a pretty basic one. I have a pretty busy single install Wordpress website on a 16 GB RAM, 4 vCPUs, 320 GB SSD lightsail instance and I am wondering what is the ideal memory limit I should set on the wp-config file? Currently it is set to 512mb.

Any thoughts or ideas on best practices using the above instance are much appreciated.

preguntada hace 2 años530 visualizaciones
1 Respuesta
0

Hello and thanks for choosing Lightsail!

I did some reading on the memory_limit php.ini option. As indicated by the documentation, the memory limit is applied on a per-script basis. I think that in WordPress that would also imply per-page-request because each request for a page results in a script execution. With that in mind, my advice would be to increase this value only if you know that the plugins you are using might need more than the 512MB limit set by default. I do not think that the size of the instance's memory would or should affect this decision.

I hope this helps!

profile pictureAWS
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas