alibaba / alibaba/druid

连接池连接数量一直增加,超过maxActive

Open
#3,166 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
28.2k
Forks
8.6k
PR merge metrics
No merged PRs in 30d

Description

场景:
我的web应用使用了druid1.1.9版本,数据库mysql,应用要访问mysql中的mydb,当我先启动应用,再创建mysql database时,会触发这个问题,用netstat -anp|grep 3306,能够看到连接数一致在涨。

问题复现步骤:
启动web应用----》在mysql中创建test_db不创建表---》观察连接数一致在涨

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with Druid 1.1.9 and MySQL by starting the web application before creating test_db without tables. Monitor port 3306 with netstat and compare the connection count with maxActive; done means the count no longer keeps increasing after the database is created.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mysql
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.