Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 9.2.3 throws java.util.concurrent.TimeoutException

Appreciate your response. Here is the configuration to the jetty server...

        server = new Server(new ExecutorThreadPool(corePoolSize, maxPoolSize, keepAliveTimeout, TimeUnit.SECONDS));
        HttpConfiguration configuration = new HttpConfiguration();
        configuration.setRequestHeaderSize(requestHeaderSize);
              
        LowResourceMonitor lowResourceMonitor = new LowResourceMonitor(server);
        lowResourceMonitor.setLowResourcesIdleTimeout(lowResourcesMaxIdleTime);
        lowResourceMonitor.setMaxConnections(lowResourcesConnections);
        server.addBean(lowResourceMonitor);
       
        ServerConnector connector = new ServerConnector(server, new HttpConnectionFactory(configuration));
        connector.setHost(host);
        connector.setPort(port);
       
        connector.setIdleTimeout(maxIdleTime);
        connector.setAcceptQueueSize(acceptQueueSize);
        connector.setReuseAddress(true);
        connector.accept(acceptors);
        server.setConnectors(new Connector[] { connector });

Back to the top