about dump.rdb in redis

12 views
Skip to first unread message

William Wu

unread,
Mar 25, 2012, 5:35:52 AM3/25/12
to Redis Clients Development
I have set maxmemory in redis.conf to 20G, but when I ran redis-cli,
inserting data with 15G, the memory consisting of virtual and physical
was always about 8G, why? Where was the remaining data? At the same
time, I checked the dump.rdb, whose size always ranged from 800M to
1.6G, and I searched in google which told me the lateset data replaced
old ones. If so, how should I do to avoid that situation?

Thanks!

Salvatore Sanfilippo

unread,
Mar 25, 2012, 5:37:34 AM3/25/12
to redis-cl...@googlegroups.com
Hi, how do you know that you inserted 15 GB of data *once* encoded
inside Redis data structures?

Cheers,
Salvatore

--
Salvatore 'antirez' Sanfilippo
open source developer - VMware

http://invece.org
"We are what we repeatedly do. Excellence, therefore, is not an act,
but a habit." -- Aristotele

William Wu

unread,
Mar 25, 2012, 5:52:00 AM3/25/12
to Redis Clients Development
I counted my data, showing that was 15G. But I couldn't finish all the
data because my Java program threw the exception of heap space while I
set heap 8G.
About data structure, you can check the post which is
jredis encounters heap space
http://groups.google.com/group/redis-clients-dev/browse_thread/thread/231fd522a414ab73

On 3月25日, 下午5时37分, Salvatore Sanfilippo <anti...@gmail.com> wrote:
> Hi, how do you know that you inserted 15 GB of data *once* encoded
> inside Redis data structures?
>
> Cheers,
> Salvatore
>
Reply all
Reply to author
Forward
0 new messages