Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activeCount不释放,达到maxActive后,服务不可用 #4438

Open
BruceZhangXL opened this issue Sep 3, 2021 · 13 comments
Open

activeCount不释放,达到maxActive后,服务不可用 #4438

BruceZhangXL opened this issue Sep 3, 2021 · 13 comments
Labels
Milestone

Comments

@BruceZhangXL
Copy link

BruceZhangXL commented Sep 3, 2021

druid版本 1.1.22
参数:
{"initialSize":70,"minIdle":70,"maxActive":80,"maxWait":1500,"removeAbandoned":false,"removeAbandonedTimeoutMillis":180000,"timeBetweenEvictionRunsMillis":15000,"minEvictableIdleTimeMillis":54000,"maxEvictableIdleTimeMillis":54000,"validationQuery":"SELECT 'x'","testWhileIdle":true,"testOnBorrow":false,"testOnReturn":false,"keepAlive":true,"useUnfairLock":true,"filters":"stat"}

问题:线上突然有部分机器activeCount持续缓慢增长,直到达到maxActive,服务不可用

dump内存�发现 activeCount=65,但是此时应用上没有使用连接的线程

image

@BruceZhangXL
Copy link
Author

@wenshao 看历史issure中有不少反馈activeCount计算出错的,有一些是keepAliveBetweenTimeMillis、minEvictableIdleTimeMillis、maxEvictableIdleTimeMillis设置不当导致 连接池中重复;但是好像也有一些是其他原因,定位了一段时间,一直没查到具体是哪里导致这个activeCount计算错,麻烦您抽空看下

@kimmking
Copy link
Collaborator

升级到1.2.6试试。
老版本统计不准。

@BruceZhangXL
Copy link
Author

升级到1.2.6试试。
老版本统计不准。

具体啥原因呀,可以告知一下么;线上突然出现该问题,以前没有过

@wenshao wenshao modified the milestones: 1.2.8, 1.2.7 Oct 3, 2021
@wenshao
Copy link
Member

wenshao commented Oct 3, 2021

keepAlive的bug,升级到1.2.7以及更高版本可以解决

@ghost
Copy link

ghost commented Jan 8, 2023

2023年,1.2.15仍然有此问题

@BruceZhangXL
Copy link
Author

BruceZhangXL commented Jan 8, 2023 via email

@momolela
Copy link

2023年,1.2.15仍然有此问题

请问问题解决了么?

@BruceZhangXL
Copy link
Author

BruceZhangXL commented Jul 26, 2023 via email

@momolela
Copy link

momolela commented Jul 26, 2023 via email

@15206125206
Copy link

最新版1.2.16仍有问题

@wenshao wenshao reopened this Jul 31, 2023
@chengguotao
Copy link

1.2.14 druid 线上突然出现一样的现象,报错全是在异步线程池调用mapper查询db的地方,
先是报一些下面的错,接着ActiveCount上涨一定数量不降:
image
接着过几天线上突然就不可用:
ConnectionTimeoutException: wait millis 2000, active 798, maxActive 200, creating 0

@momolela
Copy link

momolela commented Aug 18, 2024 via email

@chengguotao
Copy link

2023年,1.2.15仍然有此问题

请问问题解决了么?怎么解决的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants