Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to programattically set maxThreads?

Am 12.03.2014 17:43, schrieb Daniel Hopkins:
> Hi folks, poking around the docs/googling, etc..I have been
> unable to determine how to set the maxthreads

[...]

> Doing some snooping around, I have seen references to:
> server.setThreadPool(), but this does not appear to exist
 on this version of jetty

But there is a constructor
new org.eclipse.jetty.server.Server(@Name("threadpool") ThreadPool pool);

So you can do a
new Server(new QueuedThreadPool(maxThreads));


Regards, Lothar


Back to the top