There seems to be a memory leak in my couchbase server when I use documents.
Couchbase version - Community Edition 5.0.1 build 5003
Client SDK - node 2.3.3
Max No of keys at a time - 400k
Memory used - 2.9 GB and rising
User Data - 2.7 GB and rising
Document size - less than 1 KB
Ops - 1000 (500 gets and 500 sets)
Each key is created with an expiry of 10 mins
The No of Items displayed in the Couchbase Console seems right because it is fairly constant.
The Memory and User Data in RAM are ever increasing and don’t get cleared.
Over the last 3 months Memory Used got cleared twice - both at 1.86 GB but that cycle did not repeat now and memory is still rising
I have another bucket which is not Document based and I don’t see any memory leak in that bucket. It is only the bucket with Document based which has this leak.
Is it an issue with the node js library or with couchbase server configuration? How can I proceed to fix the issue.