I assume that this is not raw data that fills your memory, but the metadata associated with it. Couchbase 2.5 requires 56 bytes per key, so in your case it will be approximately 7 GB of metadata, which is much less than your memory quota.
But ... metadata can be fragmented in memory. If you turned on all 124M objects in batch in a short time, I would suggest that you get at least 90% fragmentation. This means that using only 7 GB of useful metadata, the space needed to store it filled your RAM with lots of unused parts in each allocated block.
The solution to your problem is to defragment the data. It can either be done manually, or called if necessary:
- manually:

- automatically:

If you need to understand more about why compaction is needed, you can read this blog article by Couchbase .
Mickaël le baillif
source share