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?

I missed that!, thanks much for the pointer :)

-----Original Message-----
From: jetty-users-bounces@xxxxxxxxxxx [mailto:jetty-users-bounces@xxxxxxxxxxx] On Behalf Of Lothar Kimmeringer
Sent: Wednesday, March 12, 2014 9:50 AM
To: JETTY user mailing list
Subject: 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
jetty-users mailing list

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at

Back to the top