Memory exhausted on wp site affecting entire server
-
I recently deployed a WordPress site, and I’ve noticed that the RAM is constantly being exhausted, which makes the site inaccessible. What’s worse, this issue affects the other instances on the server as well — they also become unreachable, including the Cloudron dashboard itself. The only way to restore access is by rebooting the entire server.
It’s important to note that the configurations set for the server and each app do not exceed the assigned limits for memory or CPU.
-
@mbarria I would start by disabling all site plugins and seeing if the memory leak stops. Then bring them back one by one. I can't explain why the container limit is not enforced, but it could also be that the WP site causes problems with MySQL. Lastly, how much RAM do you have on the Cloudron server and if you disable the WP site, how are the remaining apps functioning relative to service limits?
-
@mbarria if you can get by with docker, can you please try this via SSH?
docker ps
<- this will return the container ids . get the container id of the wordpress appdocker inspect <containerid>
<- In the output of the command you will see the various Memory contraints. Can you check if the contraints are getting applied?
-
@mbarria if you can get by with docker, can you please try this via SSH?
docker ps
<- this will return the container ids . get the container id of the wordpress appdocker inspect <containerid>
<- In the output of the command you will see the various Memory contraints. Can you check if the contraints are getting applied?
-
@mbarria I would start by disabling all site plugins and seeing if the memory leak stops. Then bring them back one by one. I can't explain why the container limit is not enforced, but it could also be that the WP site causes problems with MySQL. Lastly, how much RAM do you have on the Cloudron server and if you disable the WP site, how are the remaining apps functioning relative to service limits?
@crazybrad thanks,
The memory usage for the mysql service is not more than 10%, something like 2.5Gb.
The server memory is 32 GB, I only run in the Cloudron server no more than 6 applications; 3 of them are wordpress, 1 mautic, another 2 nextcloud. What is annoying is that when this happens all the applications are staled or inaccessible.
It has been 4 days since I rebooted the server, and it hadn't happened again.Merci, MB
-
@joseph thanks,
How do I see if the memory constraints are applied. Do you want me to paste the output here?
Thanks
MB
@mbarria for example, like this:
root@my:~# docker inspect mail | grep Memory "Memory": 536870912, "MemoryReservation": 0, "MemorySwap": -1, "MemorySwappiness": null,
The Memory field is the max memory app can use. See https://docs.docker.com/reference/api/engine/version/v1.47/#tag/Container/operation/ContainerInspect (If you click on "200" then it expands to the response fields)