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.

demandé il y a 2 ans530 vues
1 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions