Workingwith Thread Pools
Tocreate a thread pool using the Admin Console, go to Conguration > Thread Pools >
CurrentPools > New.
Enterthe name of the thread pool in the Thread Pool ID eld.
Enterthe minimum number of threads in the thread pool servicing requests in this queue in
theMinimum Thread Pool Size eld.
Thesethreads are created up front when this thread pool is instantiated.
Enterthe maximum number of threads in the thread pool servicing requests in this queue in
theMaximum Thread Pool Size eld.
Thisis the upper limit on the number of threads that exist in the thread pool.
Enterthe number, in seconds, after which idle threads are removed from pool in the Idle
Timeouteld.
Enterthe total number of work queues that are serviced by this thread pool in the Number
ofWork Queues eld.
Restartthe Enterprise Server.
Formore details on creating thread pools, click Help in the Admin Console.
Youcan also create a thread pool from the command-line by using the asadmin command,
create-threadpool.
Toedit a settings for a thread pool using the Admin Console, go to Conguration > Thread
Pools> Current Pools and select the pool you want to congure. Modify the values for the
selectedthread pool, save and restart the Enterprise Server.
Formore details on editing thread pools, click Help in the Admin Console.
Todelete a thread pool using the Admin Console, go to Conguration > Thread Pools >
CurrentPools. Check the thread pool name to be deleted and click Delete.
Youcan also create a thread pool from the command-line by using the asadmin command,
delete-threadpool.
WorkingwithThread Pools
SunGlassFishEnterprise Ser ver2.1 Administration Guide • December 2008164