Re: Problem with multithreadeding in Java

2017-04-15 Thread Allexandre Sampaio
Hi Alex, the code bellow is used to set up the Riak Client (if no one is already started) or share the client with the threads. public RiakClient getDB() throws UnknownHostException { if (client == null) { client = RiakClient.newClient("localhost"); } return

Re: Problem with multithreadeding in Java

2017-04-14 Thread Alex Moore
Hi Allexandre, Could you share your code for setting up the RiakNode/RiakCluster/RiakClient objects on the Java side, and how you are sharing them amongst your worker threads? Thanks, Alex Clients Team Lead On Thu, Apr 13, 2017 at 6:09 PM, Allexandre Sampaio wrote: >

Problem with multithreadeding in Java

2017-04-14 Thread Allexandre Sampaio
Hi, I'm using Riak TS in a multithreaded application, running on an Ubuntu 16.04 server, for a college project. The library I'm using is riak-client-2.1.1, with all of its dependencies. The problem starts when I try to set more than some dozens threads, so the Riak service starts to refuse the