RDP dump created on all Redis nodes

64 views
Skip to first unread message

Apoorv Verma

unread,
Mar 13, 2022, 7:07:08 AM3/13/22
to Redis DB
Hello , 

We encountered a memory issue in one of our production enviornment and found the following stacktrace - 

"Caused By": { "org.springframework.dao.InvalidDataAccessApiUsageException: OOM command not allowed when used memory > 'maxmemory'.; nested exception is redis.clients.jedis.exceptions.JedisDataException: OOM command not allowed when used memory > 'maxmemory'." : ["JedisExceptionConverter.java",69,"org.springframework.data.redis.connection.jedis.JedisExceptionConverter.convert","JedisExceptionConverter.java",42,"org.springframework.data.redis.connection.jedis.JedisExceptionConverter.convert","PassThroughExceptionTranslationStrategy.java",44,"org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate","FallbackExceptionTranslationStrategy.java",42,"org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate"

As such we attempted to restart all the three Redis server nodes. 

But before that we took the rdb dump of the slave node where this issue occurred but observed that rdb dump was created on all the three nodes. 

Is this the expected behavior ? also What is the root cause of this issue reported in the stack trace ?

Please suggest 

Best Regards,
Apoorv 

Kunal Gangakhedkar

unread,
Mar 13, 2022, 10:39:23 AM3/13/22
to redi...@googlegroups.com
The root-cause is clearly mentioned in the error msg:
used memory > maxmemory

This means that redis can no longer take any write operations and will return an error.

For more details, please check:
Specifically, the last paragraph:
It makes Redis return an out of memory error for write commands if and when it reaches the limit - which in turn may result in errors in the application but will not render the whole machine dead because of memory starvation.

Hope this helps.

Thanks,
Kunal


--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/b8ca4137-ae59-49ae-944f-3879aafe2d9cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages