[SERVER-4089] Memory leak Created: 17/Oct/11  Updated: 17/Oct/11  Resolved: 17/Oct/11

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.0.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Vitaly Baev Assignee: Unassigned
Resolution: Done Votes: 0
Labels: leak, memory
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Debian Squeeze, mongo installed from official 10gen repo


Operating System: Linux
Participants:

 Description   

We have two mongodb shards 29GB each. All data is about 50GB.
When we restarted our servers appeared the following behaviour:
res memory on each shard grows very slow (about 1MB/sec), but userd memory (by "free" linux command) grows very fast.
Now we looks at this situation:

mongostat:
insert query update delete getmore command flushes mapped vsize res faults locked % idx miss % qr|qw ar|aw netIn netOut conn time
15 109 9 2 57 87 0 33.9g 72.2g 1.49g 0 3.1 0 0|0 0|0 39k 329k 81 00:33:51

but:

root@MongoShard1:~# free
total used free shared buffers cached
Mem: 29367112 29226476 140636 0 40732 28061776
-/+ buffers/cache: 1123968 28243144
Swap: 1048568 0 1048568

about 29gb used, but by mongo only 1.49gb
there are no any other processes on server that can use more than some megabytes of ram

Does it mongodb bug?



 Comments   
Comment by Eliot Horowitz (Inactive) [ 17/Oct/11 ]

Looks like in cache - so file system cache probably.

Comment by Vitaly Baev [ 17/Oct/11 ]

So who exactly uses 28gb memory? Mongo?

Comment by Eliot Horowitz (Inactive) [ 17/Oct/11 ]

No - this can be totally normal based on usage patterns, restarts, etc...

Generated at Thu Feb 08 03:04:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.