-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b649e6
commit 321e2c4
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# 问题记录 | ||
|
||
## DruidDatasource在并发环境下卡死的问题 | ||
|
||
在测试一个并发写入时,当线程数超过一定量时,发现线程阻塞住了。使用VisualVM 分析线程栈 | ||
|
||
发现线程在druid相关代码附近处于wating状态: | ||
|
||
![屏幕截图 2021-06-10 102911](/assets/屏幕截图%202021-06-10%20102911.png) | ||
|
||
druid 默认的最大连接为8 将其调大一点即可。 | ||
|
||
```yml | ||
max-active: 50 | ||
remove-abandoned: true | ||
``` |