Oracle GlassFish Server 3.1 Section 1: asadmin Utility Subcommands
create-connector-connection-pool(1)
create-connector-security-map(1)
create-connector-work-security-map(1)
create-jdbc-connection-pool(1)
create-message-security-provider(1)
create-resource-adapter-config(1)
delete-connector-connection-pool(1)
delete-connector-security-map(1)
delete-connector-work-security-map(1)
delete-jdbc-connection-pool(1)
delete-message-security-provider(1)
delete-resource-adapter-config(1)
disable-http-lb-application(1)
disable-secure-admin-internal-user(1)
disable-secure-admin-principal(1)
enable-secure-admin-internal-user(1)
enable-secure-admin-principal(1)
list-connector-connection-pools(1)
list-connector-security-maps(1)
list-connector-work-security-maps(1)
list-message-security-providers(1)
list-resource-adapter-configs(1)
list-secure-admin-internal-users(1)
list-secure-admin-principals(1)
list-supported-cipher-suites(1)
unfreeze-transaction-service(1)
update-admin-server-coordinates(1)
update-admin-server-local-coordinates(1)
update-connector-security-map(1)
update-connector-work-security-map(1)
Oracle GlassFish Server 3.1 Section 1M: Utility Commands
Oracle GlassFish Server 3.1 Section 5ASC: GlassFish Server Concepts
- adds a thread pool
create-threadpool [--help] [--target target] [--maxthreadpoolsize maxthreadpoolsize] [--minthreadpoolsize minthreadpoolsize] [--idletimeout idletimeout] [--maxqueuesize maxqueuesize] [--workqueues workqueues] threadpool-id
The create-threadpool subcommand creates a thread pool with the specified name. You can specify maximum and minimum number of threads in the pool, the quantity of messages, and the idle timeout of a thread. The created thread pool can be used for servicing IIOP requests and for resource adapters to service work management requests. A thread pool can be used in multiple resource adapters.
This subcommand is supported in remote mode only.
Displays the help text for the subcommand.
This option specifies the target on which you are creating the thread pool.
Valid values are as follows:
Creates the thread pool for the default GlassFish Server instance server and is the default value
Creates the thread pool for the named configuration.
Creates the thread pool for every instance in the cluster.
Creates the thread pool for a particular instance.
Specifies the maximum number of threads the pool can contain. Default is 5.
Specifies the minimum number of threads in the pool. These are created when the thread pool is instantiated. Default is 2.
Specifies the amount of time in seconds after which idle threads are removed from the pool. Default is 900.
Specifies the maximum number of messages that can be queued until threads are available to process them for a network listener or IIOP listener. A value of -1 specifies no limit. Default is 4096.
Do not specify this option. This option is retained for compatibility with earlier releases. If you specify this option, a syntax error does not occur. Instead, the subcommand runs successfully and displays a warning message that the option is ignored.
An ID for the work queue, for example, threadpool-1.
Example 1 Creating a Thread Pool
This command creates a new thread pool called threadpool-l.
asadmin> create-threadpool --maxthreadpoolsize 100 --minthreadpoolsize 20 --idletimeout 2 threadpool-1 Command create-threadpool executed successfully
subcommand executed successfully
error in executing the subcommand