maxmemory |


I would like to check how to set the maxmemory for redis?

I know where and how to update the value

sudo systemctl restart redis-server and then maxmemory

My question is more like how to calculate the most optimal maxmemory for my site.

I can simply set maxmemory 2gb as I wish?

My memory for the virtual machine is 8gb.

Is there any rough formula (or common practice) to set the maxmemory?

I often exp my site freezed due to the redis crashed. It appears to be due to insufficient memory.

Can you please recommend any?

Thank you


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer