All Products
Search
Document Center

Performance Testing:Configure a connection pool

Last Updated:Nov 01, 2024

Performance Testing Service (PTS) uses open source Druid connection tools to facilitate the reuse of Java Database Connectivity (JDBC) connection resources. To define connection pool settings for JDBC test requests, you must configure related parameters on the Connection Pool Settings tab of each JDBC API. This topic describes how to configure a connection pool.

Procedure

  1. Configure the basic request Information of a JDBC API. For more information, see Basic request information.

  2. In the JDBC API configure section, click the Connection Pool Settings tab and then configure the parameters described in the following table.

    Parameter

    Description

    Example

    Initial Connections

    The number of physical connections that are established during initialization.

    1

    Max Connections

    The maximum number of active connections in the connection pool.

    500

    Min Connections

    The minimum number of idle connections in the connection pool.

    1

    Max Wait Time

    The waiting time for obtaining an idle connection from the connection pool. Unit: milliseconds.

    4000