Details
-
Bug
-
Resolution: Fixed
-
Critical
-
2.0-beta
-
Security Level: Public
-
10.3.121.190: Ubuntu 11.04, 4 virtual cores, 4GB RAM
Description
Steps to reproduce:
1. Install single node Couchbase server 2.0.0 (http://builds.hq.northscale.net/latestbuilds/couchbase-server-enterprise_x86_64_2.0.0-1313-rel.deb).
2. Create default bucket (type: couchbase, ram quota 3 GB, no replica).
3. Enjoy growing memory consumption (no items, no views, no ops, no active connections).
Script to measure leak:
#!/bin/bash
- First snapshot with memory stats
/opt/couchbase/bin/cbstats localhost:11210 memory > snapshot1.log
- Sleep 2 minutes
sleep 120
- Second snapshot
/opt/couchbase/bin/cbstats localhost:11210 memory > snapshot2.log
- Difference
diff snapshot1.log snapshot2.log > diff.log
Sample diff.log:
< mem_used: 31510984
> mem_used: 32804232
It equals to 37 MB/hour (~900 MB/day).
Attachments
For Gerrit Dashboard: MB-5518 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
17482,3 | MB-5518: Switch engine handle for all add_stat calls | master | ep-engine | Status: MERGED | +2 | +1 |