High Memory usage

ahmed2023

New member
Joined
May 17, 2023
Messages
1
I have a problem that I have 3GB of actual memory with WordPress .
The cached memory is very big and make my site slow and i want any help if available.
Memory(1).png
 
That looks ok, ignore the cache it will be freed as soon as more ram is needed for applications. I would be more concerned about how much swap your using. 3GB is pretty low, now if you only have a basic WordPress site it should be just fine, but if you have a lot of plugins your going to have problems.

If your using large plugins you will need to adjust the PHP memory_limit to at least 512M and add to the WordPress config: define('WP_MEMORY_LIMIT', '512M');

Have to be careful though as your pretty low on ram, if the site gets busy you will not have enough. Would suggest using a WordPress cache plugin, whatever your comfortable with, I use W3-Total-Cache and have had good results with it, but needs setup to work properly.

Also would be good to adjust your swapiness, I use the value of 1 on all my machines/vm's, so it will hold off swapping as long as possible.



Make sure you have at lease 2GB-4GB of swap space available, may be needed when doing updates.
 
Back
Top