You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] RocksDB memory occupation out of control #2204
Activity
imbajin commentedon Apr 27, 2023
感谢反馈,我们尽快看看給一下相应的测试和回复
javeme commentedon May 1, 2023
可以通过
/metrics/backend接口获取后端存储的内存占用信息,更多监控接口如下:mchgood commentedon May 2, 2023
这块内存包含 rocksdb 的吗
imbajin commentedon May 4, 2023
jemalloc代替默认的ptmalloc的, 可以尝试替换并在此 issue 记录反馈. (步骤见后)glibc的ptmalloc可能存在内存分配问题:glibc的ptmalloc可能存在的问题:arena分配,arena是一块 连续的内存,默认64M。回收是栈式回收。由于部分内存被缓存在rocksdb的memtable 或 block cache中,造成栈顶的未释放,可能造成整个arena不能回收解决方案: 替换成
jemalloc或tcmalloc(可进行对比尝试)jemalloc替换方案:LD_PRELOAD导入 jemalloc 的 so 二进制依赖文件, 例如export LD_PRELOAD=/usr/local/lib/libjemalloc.soimbajin commentedon May 29, 2023
@mchgood any update with it?
mchgood commentedon May 30, 2023
Yes, I made the settings, but there was no significant change in memory
[-][Question] 关于 rocksDB 内存占用的问题[/-][+][Question] RocksDB memory occupation out of control[/+]imbajin commentedon Jun 15, 2023
a little strange, how could we reproduce the problem easily?
mchgood commentedon Jun 25, 2023
I guess the new environment should also have this problem