summaryrefslogtreecommitdiff
path: root/db/dbcommands.cpp
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2012-03-01 13:43:27 +0100
committerAntonin Kral <a.kral@bobek.cz>2012-03-01 13:43:27 +0100
commit6d23757cc66fc1560c37ef7a0394d66ad0872563 (patch)
tree5889aba73d6f1850f2a156285ed3f9dd794aa6c4 /db/dbcommands.cpp
parent8da59cfea929c62213d7c87f17304e6f5c85230c (diff)
parentba59b00736b5b8dc0f0bd46397575aaf0cd4d44f (diff)
downloadmongodb-6d23757cc66fc1560c37ef7a0394d66ad0872563.tar.gz
Merge tag 'upstream/2.0.3'
Upstream version 2.0.3
Diffstat (limited to 'db/dbcommands.cpp')
-rw-r--r--db/dbcommands.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp
index b2e6218..fc6327c 100644
--- a/db/dbcommands.cpp
+++ b/db/dbcommands.cpp
@@ -514,7 +514,15 @@ namespace mongo {
if( overhead > 4000 ) {
t.append("note", "virtual minus mapped is large. could indicate a memory leak");
- log() << "warning: virtual size (" << v << "MB) - mapped size (" << m << "MB) is large (" << overhead << "MB). could indicate a memory leak" << endl;
+
+ static time_t last = 0;
+ time_t now = time(0);
+
+ if ( last + 60 < now ) {
+ last = now;
+ log() << "warning: virtual size (" << v << "MB) - mapped size (" << m << "MB) is large (" << overhead << "MB). could indicate a memory leak" << endl;
+ }
+
}
t.done();