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
- 關閉tomcat報錯Cannot allocate memoryTomcat
- Redis 寫磁碟出錯 Cannot allocate memoryRedis
- redis : Can't save in background: fork: Cannot allocate memoryRedis
- Ubuntu Cannot allocate memory 錯誤解決方案Ubuntu
- cenots7.6系統報“fork:Cannot allocate memory” 報錯的解決方法(實操)
- Warning: Cannot redeclare function_name()Function
- 聊聊HotSpot VM的Native Memory TrackingHotSpot
- 【ASK_ORACLE】檢查點錯誤“Cannot allocate new log”和“Checkpoint not complete”Oracle
- redis info memory命令的各項引數解釋彙總Redis
- Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3.
- Warning: Cannot modify header information - headers already sent by (output started at file_path:line)HeaderORM
- 以太坊原始碼分析(28)core-vm-stack-memory原始碼分析原始碼
- linux登入locale告警-bash: warning: setlocale: LC_TIME: cannot change的處理方法Linux
- Docker安裝 elasticsearch 報錯max virtual memory areas vm.max_map_count [65530] is too lowDockerElasticsearch
- QEMU info
- memory
- enq: TX - allocate ITL entry等待事件分析ENQ事件
- [WARNING] warning: Class com.google.protobuf.Descriptors not found - continuing with a stub.GoUI
- 關於enq: TX - allocate ITL entry等待事件ENQ事件
- BMZCTF:memory
- redis 4.0 info詳解Redis
- Metasploit命令info使用技巧
- Python(logging.getLogger().info())Python
- account_sdk_source_info
- [hgame 2023]vmGAM
- Warning: RPMDB altered outside of yumIDE
- webstorm(二):拼寫warningWebORM
- OS + hongmeng / harmony os / ArkTS
- [Memory Leak] 1. console.log cause memory leak
- [VM trunk ports]opensatck VM 單網路卡,多VLAN配置
- ffmpeg # avformat_find_stream_infoORM
- Attribute GetCustomAttribute via method info of type
- memory-cnblog
- Memory Management in RustRust
- OOM(Out Of Memory)OOM
- os.walk、os.rename
- os