Re: Unexpected memory usage

25 views
Skip to first unread message

Salvatore Sanfilippo

unread,
Apr 29, 2013, 3:57:09 AM4/29/13
to Redis DB
Hello, it looks like the internal main hash table rehashed, so it allocated two tables (the spike), incrementally moved everything in the new table, freed the old one. So you see the jump and then it goes down a bit. This is expected.
If you monitor the memory usage closely you'll see this happening multiple times as the number of keys grows.

Cheers,
Salvatore


On Sun, Apr 28, 2013 at 6:50 AM, <zl...@brightedge.com> wrote:
We are using redis 2.6.11 and storing a lot of urls in the hash. Since that we keep adding new urls, it is expected that the memory usage would go higher and higher. However, this week we got a problem since the growing of memory was unexpected. As you can see in the first picture attached, our count of urls just kept grow but memory usage jumped up around 1GB, even though it went down a little later but still too much higher. Another picture I attached is showing an exact same box storing some other urls, the memory usage looks normal to me.
Thanks,
Zhaobang

--
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 post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Salvatore 'antirez' Sanfilippo
open source developer - VMware
http://invece.org

Beauty is more important in computing than anywhere else in technology because software is so complicated. Beauty is the ultimate defence against complexity.
       — David Gelernter

zl...@brightedge.com

unread,
Apr 29, 2013, 2:54:43 PM4/29/13
to redi...@googlegroups.com
Thanks Salvatore. Good to know.
 
Best,
Zhaobang
Reply all
Reply to author
Forward
0 new messages