The connection concentrator improves the performance of applications that have frequent but relatively transient connections by enabling many concurrent client connections to be processed efficiently. It also reduces memory use during each connection and decreases the number of context switches.
The connection concentrator is enabled when the value of the max_connections database manager configuration parameter is greater than the value of the max_coordagents configuration parameter.
In an environment that requires many simultaneous user connections, you can enable the connection concentrator for more efficient use of system resources. This feature incorporates advantages that were formerly found only in DB2 Connect™ connection pooling. After the first connection, the connection concentrator reduces the time that is required to connect to a host. When disconnection from a host is requested, the inbound connection is dropped, but the outbound connection to the host is kept within a pool. When a new connection request is received, the database manager attempts to reuse an existing outbound connection from the pool.
For best performance of applications that use connection pooling or the connection concentrator, tune the parameters that control the size of the block of data that is cached. For more information, see the DB2 Connect product documentation.
update dbm cfg using max_connections 1000 automatic
update dbm cfg using max_coordagents 250 automatic
This
means that as the number of connections beyond 1000 increases, additional
coordinating agents will be created as needed, with a maximum to be
determined by the total number of connections. As the workload increases,
the database manager attempts to maintain a relatively stable ratio
of connections to coordinating agents. update dbm cfg using max_connections automatic
update dbm cfg using max_coordagents automatic