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

DBLE 开启useSqlStat参数后出现内存冲高 #3615

Open
TommyZC opened this issue Feb 16, 2023 · 1 comment
Open

DBLE 开启useSqlStat参数后出现内存冲高 #3615

TommyZC opened this issue Feb 16, 2023 · 1 comment
Labels
community issue from community memory

Comments

@TommyZC
Copy link

TommyZC commented Feb 16, 2023

  • dble version:2.19.03/lts
  • preconditions :useSqlStat=1

dump信息如下:

topConsumer
topLoader
suspect
dominator_tree2
Histogram
Histogram2
从dump中看到是ConcurrentSkipListMap占用了大部分JVM内存,里边是UserSqlLastStat$sqlLast,开启useSqlStat功能后会使用到,不太理解的是DBLE为什么会有这么多的ConcurrentSkipListMap占用空间,而且map里边看到还有map,帮忙看一下是哪里的逻辑导致生成了这么多的ConcurrentSkipListMap。
源码中是在这里初始化了map和sqlLast
image
image
image

@LUAgam LUAgam added the memory label Feb 17, 2023
@LUAgam
Copy link
Member

LUAgam commented Feb 17, 2023

need to provide a complete memory stack for analysis
questions can be reported in the QQ group 669663113.

@PanternBao PanternBao added the community issue from community label Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community issue from community memory
Projects
None yet
Development

No branches or pull requests

3 participants