Memory is not reclaimed when close the rocksdb instance

124 Views Asked by At

our project use rocksdb with rocksdbjni that is nice and easy to use. but, some problems give me a headaches. when i close the rocksdb the momery in used doesn't properly reclaimed. It seems to depending on OS.

so i did some test with this code in macos and centos. test is simple, just compare memory changes when multiple rocksdb are opened & closed. the result is below.

memory not reclaimed on centos. if you know anything about this, please give me some advice.

  • macos(pm)

image

  • centos(vm)

image

0

There are 0 best solutions below