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);
        connector.setPort(port);

        if (connector.getExecutor() instanceof ThreadPoolExecutor) {
            
((ThreadPoolExecutor)connector.getExecutor()).setMaximumPoolSize(maxThreads);
        } 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:
    <dependency>
            <groupId>org.eclipse.jetty.aggregate</groupId>
            <artifactId>jetty-all</artifactId>
            <version>9.0.6.v20130930</version>
        </dependency>

Thanx
Dan

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to