Oracle GlassFish Server 3.0.1 Domain File Format Reference

thread-pool

Defines a thread pool.

Superelements

thread-pools

Subelements

The following table describes subelements for the thread-pool element.

Table 1–165 thread-pool Subelements

Element 

Required 

Description 

property

zero or more 

Specifies a property or a variable. 

Attributes

Table 1–166 thread-pool Attributes

Attribute 

Default 

Description 

name

none 

Specifies the thread pool name. 

classname

com.sun.grizzly.http.StatsThreadPool

(Optional) Specifies the class name of the thread pool implementation. 

min-thread-pool-size

2

(optional) Specifies the minimum number of threads in the pool. These are created when the thread pool is instantiated. 

max-thread-pool-size

5

(optional) Specifies the maximum number of threads the pool can contain. To optimize this thread pool for use with an iiop-listener, set this value to 200.

idle-thread-timeout-seconds

900

(optional) Specifies the amount of time after which idle threads are removed from the pool. 

max-queue-size

4096

(optional) Specifies the maximum number of messages that can be queued until threads are available to process them for , network-listener or iiop-listener elements. A value of -1 specifies no limit.