Troubleshooting1 min readUpdated

Out of memory and swapping

When the Memory graph is full and swap grows: what uses the memory and how to bring it back to normal.

When memory runs out, the server moves pages to swap on disk and everything slows down. In the worst case a process is stopped to free memory, often MariaDB.

Memory userNormal shareLever
PHP workersWorkers × memory per requestLower pm.max_children, use Varnish
MariaDBAbout 30% of memoryTuned for you; ask us if you need a change
OpenSearchA quarter of memoryOnly where Magento needs it
Redis cacheLimited, drops old keysNothing to do
VarnishWhat you chose per storeLower its cache memory

A server that needs swap every day is too small for its workload. See When to move to a bigger server.

Did this solve it? If not, tell us what you see and we look at your server.

Open a ticket

Still stuck? Ask a person.

Tickets go straight to the engineers who run ShopWhizzy servers. Tell us the store, what you see and when it started, and we take it from there.