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 ExecutorT开发者_如何学JAVAhreadPool?
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
精彩评论