diff --git a/metadata-jdbc/src/main/java/com/automq/rocketmq/metadata/DruidDataSourceFactory.java b/metadata-jdbc/src/main/java/com/automq/rocketmq/metadata/DruidDataSourceFactory.java index ea12877c8..f2f08e947 100644 --- a/metadata-jdbc/src/main/java/com/automq/rocketmq/metadata/DruidDataSourceFactory.java +++ b/metadata-jdbc/src/main/java/com/automq/rocketmq/metadata/DruidDataSourceFactory.java @@ -44,10 +44,10 @@ public void setProperties(Properties properties) { } catch (SQLException e) { LOGGER.error("Failed to set stat filter", e); } - dataSource.setMaxActive(20); - dataSource.setInitialSize(5); - dataSource.setMinIdle(1); - dataSource.setMaxWait(6000); + dataSource.setMaxActive(100); + dataSource.setInitialSize(20); + dataSource.setMinIdle(5); + dataSource.setMaxWait(60000); dataSource.setTimeBetweenEvictionRunsMillis(60000); dataSource.setMinEvictableIdleTimeMillis(300000);