| 第一层 | ulimit -v / /proc/<pid>/limits |
|---|---|
| 第二层 | cgroup memory.max / pids.max |
| 第三层 | overcommit 模式与 CommitLimit |
| 第四层 | vm.max_map_count、碎片 |
排查命令
排查命令
ulimit -v; grep -i 'address' /proc/<pid>/limits
grep -E 'CommitLimit|Committed_AS' /proc/meminfo
sysctl vm.overcommit_memory vm.max_map_count
cat /sys/fs/cgroup/<组>/memory.max 2>/dev/null