Nosochek
Nosochek

Reputation: 51

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.

Upvotes: 5

Views: 3297

Answers (1)

ggrandes
ggrandes

Reputation: 2133

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

Upvotes: 2

Related Questions