-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Minor - P4
-
None
-
Affects Version/s: 3.2.0
-
Component/s: Storage, WiredTiger
-
None
-
Environment:Gentoo Linux 3.17.7-gentoo #2 SMP Sun Dec 28 23:21:45 EET 2014 x86_64 Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz GenuineIntel GNU/Linux
-
Linux
-
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
Example config:
storage: dbPath: "/var/lib/mongodb" directoryPerDB: true engine: wiredTiger indexBuildRetry: true syncPeriodSecs: 60 journal: enabled: true wiredTiger: engineConfig: cacheSizeGB: 4 directoryForIndexes: true
Sets the 37G for the cache_size (it should be 4GB):
2016-01-04T20:39:08.518+0200 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=37G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0)
Startup option --wiredTigerCacheSizeGB=4 works well and sets the cache_size correctly:
2016-01-26T23:23:21.584+0200 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=4G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=fast),log=enabled=true,archive=true,path=journal,compressor=snappy),file_manaer=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0)