QueuedThreadPool threadPool = new QueuedThreadPool();
threadPool.setName("server(jetty) threads");
threadPool.setMinThreads(minThread);
threadPool.setMaxThreads(maxThread);
threadPool.setMaxIdleTimeMs(maxIdleTime);
threadPool.start();
log.info("request threadpool started.");
final Server server = new Server();
server.setThreadPool(threadPool);