2

I am using redis as session server . All data stored in ram . To store in disk from RAM I use BGSAVE command in cli its stop all services .

user6542291
  • 29
  • 1
  • 6

1 Answers1

1

If you are using Redis in a very write-heavy application, while saving an RDB file on disk or rewriting the AOF log Redis may use up to 2 times the memory normally used. The additional memory used is proportional to the number of memory pages modified by writes during the saving process, so it is often proportional to the number of keys (or aggregate types items) touched during this time. Make sure to size your memory accordingly. https://redis.io/topics/admin

You may need to tune the memory accordingly if this is the case. Related question

rainhacker
  • 592
  • 2
  • 13