dble icon indicating copy to clipboard operation
dble copied to clipboard

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

Open TommyZC opened this issue 2 years ago • 1 comments

  • 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

TommyZC avatar Feb 16 '23 07:02 TommyZC

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

LUAgam avatar Feb 17 '23 08:02 LUAgam