Skip to main content

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

Hi folks, poking around the docs/googling, etc..I have been unable to determine how to set the maxthreads


My code snippet:


server = new Server();

        ServerConnector connector = new ServerConnector(server);



        if (connector.getExecutor() instanceof ThreadPoolExecutor) {


        } else {           

            logger.warn("Could not set Max Threads, Executor class is {}", connector.getExecutor().getClass().getCanonicalName());



Is always falling into the else clause..

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









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