VM warning: INFO: OS::commit_memory Cannot allocate memory
檢視sysctl 引數
vm.min_free_kbytes = 20971520 vm.overcommit_memory = 2 vm.overcommit_ratio = 70 fs.aio-max-nr=1048576 vm.max_map_count=655360 #vm.nr_hugepages = 10 #vm.nr_hugepages = 70000 vm.vfs_cache_pressure=50 vm.dirty_background_ratio=5 vm.swappiness=0
vm.overcommit_memory = 2
overcommit_memory=1 :表示核心允許分配所有的實體記憶體,而不管當前的記憶體狀態如何,即:使用者申請記憶體的時候,系統不進行任何檢查任務記憶體足夠用,直到使用記憶體超過可用記憶體。使用這個設定會增大記憶體超載的可能性,也可以增強大量使用記憶體任務的效能。
overcommit_memory=2 :表示核心允許分配超過所有實體記憶體和交換空間總和的記憶體,但不允許超過虛擬記憶體限值(CommitLimit)的大小。如果您希望減小記憶體過度使用的風險,這個設定就是最好的。
改成1就好了
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29990276/viewspace-2928518/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- fork failed - Cannot allocate memoryAI
- Redis 寫磁碟出錯 Cannot allocate memoryRedis
- redis 寫磁碟出錯Cannot allocate memoryRedis
- Ubuntu Cannot allocate memory 錯誤解決方案Ubuntu
- redis : Can't save in background: fork: Cannot allocate memoryRedis
- 【轉】cannot allocate new log
- ora-01034 ora-27121 Cannot allocate memory錯誤解決
- ORA-27102:out of memory Linux-x86_64 Error: 12: Cannot allocate memory的處理LinuxError
- cenots7.6系統報“fork:Cannot allocate memory” 報錯的解決方法(實操)
- Thread 1 cannot allocate new logthread
- cannot allocate new log 的解決方法
- Warning: Cannot redeclare function_name()Function
- Thread 1 cannot allocate new log,Checkpoint not completethread
- Thread 1 cannot allocate new log, sequence NNN 錯誤thread
- 聊聊HotSpot VM的Native Memory TrackingHotSpot
- Thread 1 cannot allocate new log 的處理辦法thread
- ORACLE ORA-04030之 out of process memory when trying to allocateOracle
- Thread 1 cannot allocate new log Private strand flush not complete 警告thread
- AIX5.3安裝 ORACLE 10.2 RAC 執行root.sh出現lsdb: Cannot allocate memory of size 0 錯誤的解決方法AIOracle
- redis info memory命令的各項引數解釋彙總Redis
- zabbix修改Template OS Linux模版Used memoryLinux
- Manual Log Switching Causing Cannot Allocate New Log in Alert Log_435887.1
- Git (gnome-ssh-askpass:3871): Gtk-WARNING **: cannot open display:Git
- Warning: Cannot send session cookie - headers already sent 解決SessionCookieHeader
- 【ASK_ORACLE】檢查點錯誤“Cannot allocate new log”和“Checkpoint not complete”Oracle
- O/S-Error: (OS 33) The process cannot access the fileError
- C++ Programming Error/Warning Analysis (1) cannot have cv-qualifierC++Error
- 以太坊原始碼分析(28)core-vm-stack-memory原始碼分析原始碼
- AIX平臺下報ORA-04030: out of process memory when trying to allocate string bytesAI
- Windows下虛擬機器安裝Mac OS X ----- VM12安裝Mac OS X 10.11Windows虛擬機Mac
- Granules of pga_aggregate_target 494 cannot be more than memory_target (497)
- Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk spaceErrorDatabase
- Azure上批量建立OS Disk大於30G的Linux VMLinux
- Warning: OS async I/O limit 128 is lower than recovery batch 1024MITBAT
- Ubuntu elasticsearch max virtual memory areas vm.max_map_count [65530] is too low, increase to at leUbuntuElasticsearch
- 【Mysql】vm.overcommit_memory導致的mysql啟動記憶體報錯MySqlMIT記憶體
- ALLOCATE CHANNEL FOR MAINTENANCE 命令AINaN
- QEMU info