google / leveldb

LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
BSD 3-Clause "New" or "Revised" License
36.08k stars 7.78k forks source link

Memory consumption problem #1132

Open mitr15fan15v opened 1 year ago

mitr15fan15v commented 1 year ago

I am using LevelDB version SHARED_VERSION_MAJOR = 1 SHARED_VERSION_MINOR = 20 OS Screenshot from 2023-07-01 00-24-19 Database ~ 20 000 000 Pair Screenshot from 2023-07-01 00-28-30

Memory consumption before reading from the database Screenshot from 2023-07-01 00-43-14

After first reading from the database Screenshot from 2023-07-01 00-45-53

After second reading from the database Screenshot from 2023-07-01 00-48-50

After the third read from the database Screenshot from 2023-07-01 00-52-17

So you can continue until all the memory runs out. At first I thought it was just a memory leak, but Screenshot from 2023-07-01 01-37-41

No leaks Screenshot from 2023-07-01 01-45-11 Screenshot from 2023-07-01 01-45-32 What consumes memory, and most importantly why?

grigzy28 commented 4 months ago

Have you considered using 1.23 ? So far I'm not experiencing any of this as I had with 1.20.