0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

make serverStatus more obvious with journal

This commit is contained in:
Eliot Horowitz 2011-05-18 02:44:16 -04:00
parent 93eaf061fa
commit 0146bef876

View File

@ -431,8 +431,10 @@ namespace mongo {
int m = (int) (MemoryMappedFile::totalMappedLength() / ( 1024 * 1024 ));
t.appendNumber( "mapped" , m );
if ( cmdLine.dur )
if ( cmdLine.dur ) {
m *= 2;
t.appendNumber( "mappedWithJournal" , m );
}
if( v - m > 5000 ) {
t.append("note", "virtual minus mapped is large. could indicate a memory leak");