Redis cache filling up causing memory issue
-
I use Redis through my host, Redis is optional with the hosting package I have with them.
After having set up the Redis cache with the plugin, it used to work fine for 1 day. Then the plugin was not connected anymore, tried restarting the Redis server, disabled cache, removed plugin, re-installed it, stopped and started Redis server etc.
All that I was left with:
Not ConnectedThen through Query Monitor I discovered the following error: ‘OOM command not allowed when used memory > ‘maxmemory’.
BTW later on I also found the error in the plugin’s diagnostics.An online search disclosed that possibly the Redis cache limit was reached, I checked with my host and they were astounded because they never seen this happen before. In general they set Redis to 512 Mb, so as an exception for me, they increased it to 600 Mb and now the plugin is connected again – but for how long ..?
So here are my questions:
Doesn’t Redis cache get flushed automatically after it reaches the apparently set limit?Cache is supposed to be temporary storage, I never, ever had any cache fill (hard- and software based) stop something from working because it was filled. Is it correct that with Redis it does?
Now the limit has been increased a bit but I suspect it will fill up soon again.
Isn’t there a way to automatically let the cache flush or reset when it reached the limit? Just like normal cache behavior does.My host say I need to find out what is filling the cache, but how can I do that then? I read somewhere on your site that you can check logs with a ro subscription? But I am not the direct Redis account holder with access to that.
Any suggestions and thoughts on what may solve the above issues?
- The topic ‘Redis cache filling up causing memory issue’ is closed to new replies.