Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 731
Nosochek Avatar asked Nov 04 '22 23:11

Nosochek


1 Answers

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

like image 87
ggrandes Avatar answered Nov 15 '22 05:11

ggrandes