Hi Aris, Why closing the connection if Jersey could be able to reuse the same with a Keep-Alive setting?
Best Regards, Luca Garulli CEO at Orient Technologies LTD the Company behind OrientDB http://about.me/luca.garulli On 13 May 2015 at 14:57, Aris Alexis <[email protected]> wrote: > Hi, > > I am running 2.0.1 and I am using the http index interface as a key/value > store. I access it with jersey client and have also in the headers added > "Connection","close". > The configuration is set at max pool connections at 1500. When running my > tests without even reaching 20-30 requests I get > > 2015-05-13 14:52:03:127 WARNING Reached maximum number of concurrent > connections > (1013), reject incoming connection from /127.0.0.1:65231 > [OServerNetworkListener] > > I am using a pool (but is it even related to the graph pool?). > > here is a sample request > > Client client=buildClient(); > try { > Response response = client.target(OrientDatabase.getHTTP_URL() + > "/index/exchange/exchangeKV/" + codingUtilities.toUtf(key)) > .request() > .header("Connection", "close") > .put(Entity.entity(value.toString(), > MediaType.APPLICATION_JSON_TYPE)); > > if (response.getStatus() == Response.Status.ACCEPTED.getStatusCode()) > return true; > else return false; > }finally { > client.close(); > } > > > maybe the header is not sent with PUT requests? but again, I am nowhere > near close 1500 connections. > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
