Riak crashing with using Java client.

Marko Rodriguez okrammarko at gmail.com
Wed Mar 9 16:09:08 EST 2011


Hi guys,

That worked. I didn't know what ulimit was (assumed it was some Riak thing but couldn't find a config file or anything).

Anywho, back in business.

Thanks guys,
Marko.

http://markorodriguez.com

On Mar 9, 2011, at 1:55 PM, Mark Phillips wrote:

> There is also some ulimit info on the Riak wiki.
> 
> http://wiki.basho.com/Open-Files-Limit.html
> 
> Mark
> 
> 
> 
> On Wed, Mar 9, 2011 at 12:50 PM, Sylvain Niles <sylvain.niles at gmail.com> wrote:
>> Your ulimit is only 256 so if riak tries to open a new file handler for your
>> connection and is denied by the OS then it will refuse the connection.
>> Here's a basic rundown on ulimit:
>> http://www.linuxhowtos.org/Tips%20and%20Tricks/ulimit.htm
>> Hope this helps.
>> -Sylvain
>> 
>> On Wed, Mar 9, 2011 at 12:47 PM, Marko Rodriguez <okrammarko at gmail.com>
>> wrote:
>>> 
>>> Hello,
>>> 
>>> My name is Marko. I'm new to this list.
>>> 
>>> I don't know how to express my problem because it happens randomly :( ....
>>> In short, I believe that
>>> plainClient.listBucket("bucket").getKeys().iterator() causes Riak to
>>> shutdown and deny connections (stack trace below).
>>> 
>>> marko:~/Desktop/riak-0.14.0$ ./bin/riak ping
>>> !!!!
>>> !!!! WARNING: ulimit -n is 256; 1024 is the recommended minimum.
>>> !!!!
>>> Node 'riak at 127.0.0.1' not responding to pings.
>>> 
>>> 
>>> Perhaps its a out of memory issue ---- I was hoping that the iterator() of
>>> getKeys() was lazy---is it?
>>> 
>>> Thank you,
>>> Marko.
>>> 
>>> http://markorodriguez.com
>>> 
>>> ------------------------------------
>>> 
>>> Caused by: com.basho.riak.client.plain.RiakIOException:
>>> java.net.ConnectException: Connection refused
>>>        at
>>> com.basho.riak.client.plain.ConvertToCheckedExceptions.handle(ConvertToCheckedExceptions.java:34)
>>>        at
>>> com.basho.riak.client.util.ClientHelper.toss(ClientHelper.java:295)
>>>        at
>>> com.basho.riak.client.util.ClientHelper.executeMethod(ClientHelper.java:390)
>>>        at
>>> com.basho.riak.client.util.ClientHelper.executeMethod(ClientHelper.java:399)
>>>        at
>>> com.basho.riak.client.util.ClientHelper.store(ClientHelper.java:168)
>>>        at com.basho.riak.client.RiakClient.store(RiakClient.java:238)
>>>        at com.basho.riak.client.RiakClient.store(RiakClient.java:243)
>>>        ... 3 more
>>> Caused by: java.net.ConnectException: Connection refused
>>>        at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>>        at
>>> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>>        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>>        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
>>>        at java.net.Socket.connect(Socket.java:529)
>>>        at java.net.Socket.connect(Socket.java:478)
>>>        at java.net.Socket.<init>(Socket.java:375)
>>>        at java.net.Socket.<init>(Socket.java:249)
>>>        at
>>> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
>>>        at
>>> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
>>>        at
>>> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
>>>        at
>>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
>>>        at
>>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
>>>        at
>>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>>>        at
>>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>>>        at
>>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
>>>        at
>>> com.basho.riak.client.util.ClientHelper.executeMethod(ClientHelper.java:372)
>>>        ... 8 more
>>> 
>>> 
>>> _______________________________________________
>>> riak-users mailing list
>>> riak-users at lists.basho.com
>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>> 
>> 
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>> 
>> 





More information about the riak-users mailing list