I add that I do not know how to set the maxThreads parameter configuring the application with spring. In fact this page:
http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/70-restlet/196-restlet.html?layoutType=plain does not declare the context in spring and the ServerResource.init method is final in the actual implementation, so I do not know how to access the context instance. On Tue, Oct 12, 2010 at 4:41 PM, Daniele Dellafiore <[email protected]> wrote: > Hi, > > > I got the > INFO: Stop accepting new connections and transactions. Consider > increasing the maximum number of threads. > > using restlet 2.0.1 and the server stopped receiving connection. > (should not this be a warning?) > I googled it and worked around with > > server.getContext().getParameters().add("maxThreads", "512"); > > But this is not a solution, just a temporary patch cause I can't > understand why 10 connections are not enough in test environment, > given that each tests invoke the server, always the same instance, and > then I expect the thread to be released so the test that follows can > reuse the old thread, given I do not perform simultaneous tests.. > > Why the thread is not reused? How can I investigate about this > policy/behavior? > > Maybe you can point me to some article or page in Restlet in Action > MEAP which I own. > > Thanks in advance. > > -- > Daniele Dellafiore > http://danieledellafiore.net > -- Daniele Dellafiore http://danieledellafiore.net ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2670838

