I'm not clear from the question if you're asking about the number of task
threads as Tim has explained, or the number of http listener threads, for that
use:
Server httpServer = new Server(Protocol.HTTP, port);
serviceComponent.getServers().add(httpServer);
httpServer.getContext().getParameters().add("maxThreads",
maxThreads);
On Jul 27, 2011, at 2:02 PM, Tim Peierls wrote:
> You can set the pool size of the executor used by the TaskService with
> org.restlet.service.TaskService.setPoolSize.
>
> Or you can provide your own TaskService and override createExecutorService.to
> return an ExecutorService tuned exactly the way you want.
>
> --tim
>
> On Wed, Jul 27, 2011 at 8:14 AM, Klemens Muthmann <[email protected]> wrote:
> Hi,
>
> I read several threads about this problem now (including this one) and still
> can't figure out how to solve the issues (My Restlet Version is 2.0.8). May
> someone point me to the relevant tutorial or show some code on how to
> increase the thread pool size on the RESTlet Server?
>
> Thanks and regards
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2804569
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2805287