403591 do not use the ConcurrentArrayBlockingQueue for thread pool, selector and async request log
This commit is contained in:
parent
bb7a1d4ca6
commit
b2f3a05503
|
@ -44,14 +44,14 @@
|
|||
<!-- =========================================================== -->
|
||||
<Arg name="threadpool">
|
||||
<New id="threadpool" class="org.eclipse.jetty.util.thread.QueuedThreadPool">
|
||||
<Arg name="minThreads">10</Arg>
|
||||
<Arg name="maxThreads">200</Arg>
|
||||
<Arg name="idleTimeout">60000</Arg>
|
||||
<Arg name="queue">
|
||||
<Arg name="minThreads" type="int">10</Arg>
|
||||
<Arg name="maxThreads" type="int">200</Arg>
|
||||
<Arg name="idleTimeout" type="int">60000</Arg>
|
||||
<!-- Arg >
|
||||
<New class="org.eclipse.jetty.util.ConcurrentArrayBlockingQueue$Unbounded">
|
||||
<Arg>32</Arg>
|
||||
<Arg type='int'>32</Arg>
|
||||
</New>
|
||||
</Arg>
|
||||
</Arg -->
|
||||
<Set name="detailedDump">false</Set>
|
||||
</New>
|
||||
</Arg>
|
||||
|
|
|
@ -68,17 +68,17 @@ public class QueuedThreadPool extends AbstractLifeCycle implements SizedThreadPo
|
|||
this(200);
|
||||
}
|
||||
|
||||
public QueuedThreadPool(int maxThreads)
|
||||
public QueuedThreadPool(@Name("maxThreads") int maxThreads)
|
||||
{
|
||||
this(maxThreads, 8);
|
||||
}
|
||||
|
||||
public QueuedThreadPool(int maxThreads, int minThreads)
|
||||
public QueuedThreadPool(@Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads)
|
||||
{
|
||||
this(maxThreads, minThreads, 60000);
|
||||
}
|
||||
|
||||
public QueuedThreadPool(int maxThreads, int minThreads, int idleTimeout)
|
||||
public QueuedThreadPool(@Name("maxThreads") int maxThreads, @Name("minThreads") int minThreads, @Name("idleTimeout")int idleTimeout)
|
||||
{
|
||||
this(maxThreads, minThreads, 60000,null);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue