6 optimization configuration jetty
我正在使用Jetty 6,并想知道何时应该在ThreadPool上使用QueuedThreadPool?默认情况下,Jetty 6配置了QueuedThreadPool.
我的服务器安装了Java 6,所以我认为我应该使用ThreadPool:
<New class="org.mortbay.thread.QueuedThreadPool">
<Set name="minThreads">10</Set>
<Set name="maxThreads">200</Set>
<Set name="lowThreads">20</Set>
<Set name="SpawnOrShrinkAt">2</Set>
</New>
<New class="org.mortbay.thread.concurrent.ThreadPool">
<Set name="corePoolSize">50</Set>
<Set name="maximumPoolSize">50</Set>
</New>
Run Code Online (Sandbox Code Playgroud)
谢谢,沃尔特
归档时间: |
|
查看次数: |
4567 次 |
最近记录: |