关于Redis的“vm-max-memory limit exceeded by more than 10%”问题

网上搜了以下,总体是这个意思:vm+swap只能把value swap到文件中,如果单独key就超过了vm-max-memory,那么就swap不出去了。对话如下:

Q1

What might be the cause of this error:

vm-max-memory limit exceeded by more than 10% but unable to swap more

objects out!

thank you

A1

Redis is only able to swap out values, not keys. This means that Redis

already hit the vm-max-memory limit but can't swap more as nearly all

the values are already swapped on disk but the keys in memory are

enough to saturate all the available vm-max-memory limit.

Cheers,

Salvatore

Leave a Reply

Your email address will not be published. Required fields are marked *