Configure a JDBC connection pool

更新时间: 2026-03-11 05:50:51

Performance Testing Service (PTS) uses the open source Druid library to manage Java Database Connectivity (JDBC) connection pools. A connection pool reuses database connections across JDBC requests, reducing connection establishment overhead during load tests.

Prerequisites

Before you begin, make sure that you have:

Configure connection pool parameters

  1. In the JDBC API configuration section, click the Connection Pool Settings tab.

  2. Set the following parameters.

    Parameter

    Description

    Example

    Initial Connections

    The number of physical connections created when the pool initializes. A higher value speeds up early test requests but increases startup time.

    1

    Max Connections

    The maximum number of active connections the pool can hold. When all connections are in use, new requests wait until a connection is released or the wait time expires.

    500

    Min Connections

    The minimum number of idle connections kept in the pool. Druid maintains at least this many connections even when they are not actively used.

    1

    Max Wait Time

    The maximum time, in milliseconds, to wait for an available connection. If no connection becomes available within this period, the request fails with a timeout error.

    4000

上一篇: Use placeholders in JDBC queries 下一篇: Data sources
阿里云首页 性能测试 相关技术圈