25分 |
Jetty的队列线程数默认要比Tomcat的少,但可以在jetty.xml中指定:
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <!-- =========================================================== --> <!-- Configure the Server Thread Pool. --> <!-- --> <!-- Consult the javadoc of o.e.j.util.thread.QueuedThreadPool --> <!-- for all configuration that may be set here. --> <!-- =========================================================== --> <Get name="ThreadPool"> <Set name="minThreads" type="int">10</Set> <Set name="maxThreads" type="int">200</Set> <Set name="idleTimeout" type="int">60000</Set> <Set name="detailedDump">false</Set> </Get> ... 参考: |
25分 |
加大maxThreads值
|
嗯,我试试。 |