blob: e4a3f821f987299f43592e0d5529b22af67543e4 [file]
<!--
Copyright (c) 2005, 2018 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<p><a id="task-threadpooledit" name="task-threadpooledit"></a><a id="GHWEB00052" name="GHWEB00052"></a></p>
<h4><a id="sthref75" name="sthref75"></a>To Edit a Thread Pool</h4>
<a name="BEGIN" id="BEGIN"></a>
<ol>
<li>
<p>In the navigation tree, expand the Configuration node.</p>
</li>
<li>
<p>Under the Configuration node, select the Thread Pools node.</p>
<p>The Thread Pools page opens.</p>
</li>
<li>
<p>On the Thread Pools page, click the name of the thread pool to be edited.</p>
<p>The Edit Thread Pool page opens.</p>
</li>
<li>
<p>On the Edit Thread Pool page, in the Class Name field, type the fully qualified name of the class that implements the thread pool.</p>
<p>The default value is <code>com.sun.grizzly.http.StatsThreadPool</code>.</p>
</li>
<li>
<p>In the Max Queue Size field, type the maximum number of messages that can be queued until threads are available to process them.</p>
<p>A value of -1 indicates that there is no limit to the queue size. The default value is 4096.</p>
</li>
<li>
<p>In the Max Thread Pool Size field, type the largest number of threads that can exist in the thread pool.</p>
<p>The default value is 5. This is the recommended value for network listener thread pools.</p>
</li>
<li>
<p>In the Min Thread Pool Size field, type the smallest number of threads that can exist in the thread pool.</p>
<p>These threads are created when the thread pool is instantiated. The default value is 2.</p>
</li>
<li>
<p>In the Idle Thread Timeout field, type the maximum amount of time, in seconds, that a thread can remain idle in the pool.</p>
<p>After this time expires, the thread is removed from the pool. The default value is 900.</p>
</li>
<li>
<p>Click Save.</p>
<hr>
<p><b>Tip:</b></p>
<p>To return to the default settings, click the Load Defaults button, then click Save.</p>
<hr>
</li>
</ol>
<a id="sthref76" name="sthref76"></a>
<h5>See Also</h5>
<ul>
<li>
<p><a href="task-threadpoolnew.html">To Create a Thread Pool</a></p>
</li>
<li>
<p><a href="task-threadpooldelete.html">To Delete a Thread Pool</a></p>
</li>
</ul>
<small>Copyright &#169; 2005, 2017, Oracle and/or its affiliates. All rights reserved. <a href="docinfo.html">Legal Notices</a></small>