mohan-chinnappan-n / leveldb

Automatically exported from code.google.com/p/leveldb
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

memory increasing when using LRUCache in different threads #225

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Db is started in the main thread. A LRUCache is assigned to the db.
2.Start a new thread, traverse the db by using iterator. So data are loaded 
into lrucache. This thread does not exit.
3.do step 2 repeatlly.

What is the expected output? What do you see instead?
Memory usage should stop increase after the first time iterating db.
Instead, memory usage increase all the time.

What version of the product are you using? On what operating system?
I'm using leveldb 1.14.0 on centos

Please provide any additional information below.
Attached is a test code to reproduce this problem

Original issue reported on code.google.com by zhaoqi1...@gmail.com on 12 Feb 2014 at 8:01

Attachments: