en.help.task-threadpoolnew.html Maven / Gradle / Ivy
Show all versions of console-web-plugin Show documentation
To Create a Thread Pool
Thread pools are used by network listeners and by the ORB. Commonly, a network listener uses one of the two thread pools that are created when you install the GlassFish Server, and the ORB uses the other. You may edit either of these default thread pools to specify settings appropriate to your applications or hardware systems, or you can create and use a thread pool with these settings.
-
In the navigation tree, expand the Configuration node.
-
Under the Configuration node, select the Thread Pools node.
The Thread Pools page opens.
-
On the Thread Pools page, click New.
The New Thread Pool page opens.
-
In the Name field, type a name for the thread pool.
-
In the Class Name field, type the fully qualified name of the class that implements the thread pool.
The default value is com.sun.grizzly.http.StatsThreadPool
.
-
In the Max Queue Size field, type the maximum number of messages that can be queued until threads are available to process them.
A value of -1 indicates that there is no limit to the queue size. The default value is 4096.
-
In the Max Thread Pool Size field, type the largest number of threads that can exist in the thread pool.
The default value is 5. This is the recommended value for network listener thread pools.
-
In the Min Thread Pool Size field, type the smallest number of threads that can exist in the thread pool.
These threads are created when the thread pool is instantiated. The default value is 2.
-
In the Idle Thread Timeout field, type the maximum amount of time, in seconds, that a thread can remain idle in the pool.
After this time expires, the thread is removed from the pool. The default value is 900.
-
Click OK.
See Also
Copyright © 2005, 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices