[SERVER-17493] Warn on startup when virtual memory limit is capped Created: 06/Mar/15  Updated: 10/May/22

Status: Backlog
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Andrew Davidson Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Unresolved Votes: 0
Labels: move-sa, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-4927 Mention SUSE ulimits on installation ... Closed
is related to DOCS-4928 Comment on: "manual/reference/ulimit.... Closed
Participants:
Linked BF Score: 0

 Description   

On SUSE in particular, this comes up since the virtual address space ulimit is capped by default, e.g.:

$ ulimit -v
12634640

In mongod logs you'll see

2015-03-05T19:29:52.736+0000 E CONTROL  [conn225] mmap failed with out of memory. (64 bit build)

We don't currently warn about this particular ulimits config:

2015-03-05T18:12:58.906+0000 I CONTROL  [initandlisten] MongoDB starting : pid=18648 port=27017 dbpath=/data/db 64-bit host=ip-10-233-119-98
2015-03-05T18:12:58.906+0000 I CONTROL  [initandlisten] db version v3.0.0
2015-03-05T18:12:58.906+0000 I CONTROL  [initandlisten] git version: a841fd6394365954886924a35076691b4d149168 modules: enterprise
2015-03-05T18:12:58.906+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 0.9.8j-fips 07 Jan 2009
2015-03-05T18:12:58.906+0000 I CONTROL  [initandlisten] build info: Linux ip-10-230-183-160 3.0.13-0.27-ec2 #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b) x86_64 BOOST_LIB_VERSION=1_49
2015-03-05T18:12:58.906+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2015-03-05T18:12:58.907+0000 I CONTROL  [initandlisten] options: { net: { port: 27017 }, processManagement: { fork: true }, storage: { dbPath: "/data/db" }, systemLog: { destination: "file", path: "/data/db/mongodb.log" } }
2015-03-05T18:12:58.944+0000 I STORAGE  [initandlisten] 
2015-03-05T18:12:58.944+0000 I STORAGE  [initandlisten] ** WARNING: Readahead for /data/db is set to 512KB
2015-03-05T18:12:58.944+0000 I STORAGE  [initandlisten] **          We suggest setting it to 256KB (512 sectors) or less
2015-03-05T18:12:58.944+0000 I STORAGE  [initandlisten] **          http://dochub.mongodb.org/core/readahead
2015-03-05T18:12:58.944+0000 I JOURNAL  [initandlisten] journal dir=/data/db/journal
2015-03-05T18:12:58.944+0000 I JOURNAL  [initandlisten] recover : no journal files present, no recovery needed
2015-03-05T18:12:59.086+0000 I JOURNAL  [durability] Durability thread started



 Comments   
Comment by Steven Vannelli [ 10/May/22 ]

Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions.

Comment by Mark Benvenuto [ 11/Apr/17 ]

With SERVER-28400, we now require at least 640MB of Virtual Address Space for the SpiderMonkey JIT.

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