summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/mmap_posix.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/mmap_posix.cpp b/util/mmap_posix.cpp
index 4b6d0f5c3f9..25deb871f92 100644
--- a/util/mmap_posix.cpp
+++ b/util/mmap_posix.cpp
@@ -71,6 +71,9 @@ namespace mongo {
view = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
if ( view == MAP_FAILED ) {
out() << " mmap() failed for " << filename << " len:" << length << " errno:" << errno << endl;
+ if ( errno == ENOMEM ){
+ out() << " mmap failed with out of memory, if you're using 32-bits, then you probably need to upgrade to 64" << endl;
+ }
return 0;
}
return view;