-
Type:
Improvement
-
Resolution: Duplicate
-
Priority:
Minor - P4
-
None
-
Affects Version/s: 2.8.0-rc0
-
Component/s: Diagnostics, Storage
-
None
-
None
-
None
-
None
-
None
-
None
-
None
We expose mmapv1 specific stats in db.stats() output.
These stats are:
- fileSize
fileSize is only exposed when you run db.stats() on a mongod where no collection is created yet.
- db.stats() output on a system with no collection:
> db.stats()
{
"db" : "test",
"collections" : 0,
"objects" : 0,
"avgObjSize" : 0,
"dataSize" : 0,
"storageSize" : 0,
"numExtents" : 0,
"indexes" : 0,
"indexSize" : 0,
"fileSize" : 0,
"ok" : 1
}
- db.stats() output on a system that has one collection
> db.stats()
{
"db" : "test",
"collections" : 1,
"objects" : 2,
"avgObjSize" : 211.5,
"dataSize" : 423,
"storageSize" : 16384,
"numExtents" : 0,
"indexes" : 0,
"indexSize" : 0,
"ok" : 1
}
- duplicates
-
SERVER-16917 Return fileSize to db.stats() when using wiredTiger
-
- Closed
-