# 保留256MB为了管理使用
vm.min_free_kbytes = 256000

# 打开oom,默认是打开的
vm.overcommit_memory = 0

# 如果占用系统内存过高,会进行程序panic
vm.panic_on_oom = 1

# kernel panic后10s 进行重启
kernel.panic=10
  • 仅仅oom,不panic,不重启
vm.overcommit_memory = 0
vm.panic_on_oom = 0
kernel.panic = 0
  • 查看当前配置

sysctl vm.overcommit_memory
sysctl vm.panic_on_oom
sysctl kernel.panic
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-12 10:00:08

results matching ""

    No results matching ""