LevelDB memory problem crashes Erlang
joe at basho.com
Fri Aug 10 17:46:13 EDT 2012
This sounds like a tuning issue, the defaults for LevelDB (esp. on
Riak 1.2) use up a decent amount of RAM. There should be upcoming
documentation on all of this, but things are still in the works. In
any case, we should be able to help you out here on the mailing list.
A few questions:
1. What version of Riak? Is this Riak 1.2?
2. How much RAM do you have on your node?
3. Is this a 64-bit machine?
On Fri, Aug 10, 2012 at 1:36 PM, leonickel <leonickel at gmail.com> wrote:
> Hi all,
> I'm facing a weird problem using eleveldb store option data. The amount of
> memory starts to increase while i'm running a script to put data inside
> riak, nearly 10 million of keys in a single bucket and suddenly riak process
> crashes. My object is in json format and is about 1.5 kb each. At the
> momment of running script, the proccess memory (beam.smp) increases to about
> 450mb and then the Erlang crashes. I've got this message on logs:
> terminate called after throwing an instance of 'std::bad_alloc'
> what(): std::bad_alloc
> Erlang has closed
> /usr/lib/riak/lib/os_mon-2.2.9/priv/bin/memsup: Erlang has closed.
> In my script i'm using java client and sending requests over http protocol.
> Here are some more information about my environment and riak configs:
> - erlang version: R14B03;
> - os: Ubuntu 11.04;
> - single node;
> - n_val = 1 (i've tried default value 3 and got the same behavior);
> - ring_creation_size = 64
> - allow_mult = false;
> - last_write_wins = true;
> - r = 1;
> - w = 1;
> I've done the same test using bitcask configuration and works fine, i could
> put all my 10 million keys.
> Can anyone help me with this?
> Thanks in advance,
> View this message in context: http://riak-users.197444.n3.nabble.com/LevelDB-memory-problem-crashes-Erlang-tp4024974.html
> Sent from the Riak Users mailing list archive at Nabble.com.
> riak-users mailing list
> riak-users at lists.basho.com
Joseph Blomstedt <joe at basho.com>
Senior Software Engineer
Basho Technologies, Inc.
More information about the riak-users