GlassFish Server Reset (Flush) a Connection Pool without restarting

Use the flush-connection-pool in remote mode to reinitialize all

connections established in the specified connection pool.



The JDBC connection pool or connector connection pool is reset to its

initial state. Any existing live connections are destroyed, which

means that the transactions associated with these connections are

lost. The subcommand then recreates the initial connections for the

pool, and restores the pool to its steady pool size.



Reset a connection pool by using the flush-connection-pool subcommand.



Resetting (Flushing) a Connection Pool to its steady pool size:



asadmin> flush-connection-pool i88ca-Pool

Command flush-connection-pool executed successfully.

Comments

Popular posts from this blog

Check MySQL query history from command line