Search in sources :

Example 1 with AbstractHTTP2ServerConnectionFactory

use of org.eclipse.jetty.http2.server.AbstractHTTP2ServerConnectionFactory in project jetty.project by eclipse.

the class SmallThreadPoolLoadTest method customizeContext.

@Override
protected void customizeContext(ServletContextHandler context) {
    QueuedThreadPool serverThreads = (QueuedThreadPool) context.getServer().getThreadPool();
    serverThreads.setDetailedDump(true);
    serverThreads.setMaxThreads(5);
    serverThreads.setLowThreadsThreshold(1);
    AbstractHTTP2ServerConnectionFactory h2 = connector.getBean(AbstractHTTP2ServerConnectionFactory.class);
    h2.setInitialSessionRecvWindow(Integer.MAX_VALUE);
}
Also used : QueuedThreadPool(org.eclipse.jetty.util.thread.QueuedThreadPool) AbstractHTTP2ServerConnectionFactory(org.eclipse.jetty.http2.server.AbstractHTTP2ServerConnectionFactory)

Aggregations

AbstractHTTP2ServerConnectionFactory (org.eclipse.jetty.http2.server.AbstractHTTP2ServerConnectionFactory)1 QueuedThreadPool (org.eclipse.jetty.util.thread.QueuedThreadPool)1