Skip to content

Commit

Permalink
➕新增 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcaffebabe committed Jun 10, 2021
1 parent 2b649e6 commit 321e2c4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@
- [容器管理](./运维/容器管理.md)

- [🥽通识](./通识/nav.md)
- [问题记录](./通识/问题记录.md)
- [技术与世界](./通识/技术与世界.md)
- [专业素养](./通识/专业素养.md)
- [设计](./通识/设计.md)
Expand Down
Binary file added assets/屏幕截图 2021-06-10 102911.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions 通识/问题记录.md
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
```

0 comments on commit 321e2c4

Please sign in to comment.