スレッドプールの更新

jetty.xml でスレッドプールを更新することができます。

XML ファイルの Server Threadpool セクションのスレッドプールを変更します。

<Set name="ThreadPool"> 
      <!-- Default queued blocking threadpool 
      --> 
      <New class="org.eclipse.jetty.util.thread.QueuedThreadPool"> 
        <Set name="minThreads">2</Set> 
        <Set name="maxThreads">50</Set> 
      </New> 
      <!-- Optional Java 5 bounded threadpool with job queue 
      <New class="org.eclipse.thread.concurrent.ThreadPool"> 
        <Set name="corePoolSize">50</Set> 
        <Set name="maximumPoolSize">50</Set> 
      </New> 
      --> 
    </Set>