| 参数 | kernel.core_pattern |
|---|---|
| 两种模式 | 普通路径模板 或 |管道(交给用户态处理程序) |
| 前置条件 | ulimit -c 不为 0 才会产生 core |
查看与调整
查看与调整
sysctl kernel.core_pattern
ulimit -c
coredumpctl list | tail # systemd 系统查看转储容器场景中管道处理程序可能不存在,导致 core 无处落盘;排查崩溃先确认模式与落盘位置。
定义崩溃核心文件的命名(内核默认 core,现代发行版多改为管道交给 systemd-coredump 统一管理)。
| 参数 | kernel.core_pattern |
|---|---|
| 两种模式 | 普通路径模板 或 |管道(交给用户态处理程序) |
| 前置条件 | ulimit -c 不为 0 才会产生 core |
sysctl kernel.core_pattern
ulimit -c
coredumpctl list | tail # systemd 系统查看转储