2.20.13 flush-connection-pool
Reinitializes all connections established in the specified connection pool.
Synopsis
asadmin [asadmin-options] flush-connection-pool [--help] [--appname application [--modulename module]] [--target target] pool_name
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The flush-connection-pool subcommand resets a JDBC connection pool or a connector connection pool to its initial state. Delete the unused connections. The subcommand then recreates the initial connections for the pool, and restores the pool to its steady pool size. This subcommand is supported in remote mode only.
Precondition
Domain Administration Server (DAS) is running.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --appname application
-
Specifies the name of the application in which the application scoped resource is defined.
Type: String
The following values can be specified:
-
Application name
Default value: N/A
-
- --modulename module
-
Specifies the name of the module in which the module scoped resource is defined.
Type: String
The following values can be specified:
-
Module name
Default value: N/A
-
- --target target
-
Specifies the connection pool to be reinitialized. If you create a server instance and then specify the name of the server instance that has never started, then the command is run successfully. The target specified using the --target option does not depend on the pool name specified by the parameter.
Type: String
The following values can be specified:
-
server
Sets a Domain Administration Server as the target. server is the name of the Domain Administration Server.
-
instance-name
Sets the server instance of the specified name as the target.
Default value: server
-
- pool_name
-
Specifies the name of the connection pool to be reinitialized.
Type: String
The following values can be specified:
-
Name of the connection pool
Default value: N/A
-
Examples
The following example reinitializes the JDBC connection pool named __TimerPool on the server instance instance1.
asadmin flush-connection-pool --target instance1 __TimerPool
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully. |
1 |
error in executing the subcommand. |