简体   繁体   中英

Jetty configuration. ThreadPool

I'm trying to choose the best implementation of the threadpool for jetty configuration. But I can't find a way how to compare they. I haven't found any documentation about it. Of course I can see at source code, but on the first look it's hard to define the difference.

May be somebody knows what the difference between org.eclipse.jetty.util.thread.QueuedThreadPool, org.eclipse.jetty.util.thread.OldQueuedThreadPool and ExecutorThreadPool?

Thank you.

Seeing javadoc:

  • ExecutorThreadPool: Jetty ThreadPool using java 5 ThreadPoolExecutor This class wraps a ExecutorService as a ThreadPool and LifeCycle interfaces so that it may be used by the Jetty org.eclipse.jetty.server.Server

The others...

  • QueuedThreadPool seems to be implemented before java 5
  • OldQueuedThreadPool ... ¿? seems old unremoved code

If you are in doubt... do test with jmeter: http://jmeter.apache.org

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM