当前位置:网站首页>关于core文件
关于core文件
2022-07-24 18:38:00 【我要精通C++】
core文件存储位置和命名
1.检查coredump是否打开
ulimit -c
如果输出为unlimited,则表示core文件的size无限制,如果为0表示不记录core文件,如果为非零数字表示最大coredump文件大小。
2.查看core文件保存的位置
cat /proc/sys/kernel/core_pattern
3.如果需要修改,可以参考:
sysctl -w kernel.core_pattern=/corefile/core.%e.%p.%s.%E
可以将core文件统一生成到/corefile目录下,产生的文件名为core-命令名-pid-时间戳
以下是参数列表:
%p - insert pid into filename 添加pid(进程id)
%u - insert current uid into filename 添加当前uid(用户id)
%g - insert current gid into filename 添加当前gid(用户组id)
%s - insert signal that caused the coredump into the filename 添加导致产生core的信号
%t - insert UNIX time that the coredump occurred into filename 添加core文件生成时的unix时间
%h - insert hostname where the coredump happened into filename 添加主机名
%e - insert coredumping executable name into filename 添加导致产生core的命令名
边栏推荐
- ORM introduction and database operation
- Today's sleep quality record 79 points
- KiB、MiB与KB、MB的区别
- Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag
- 2020年中职组“网络空间安全”赛项浙江省竞赛任务书及答案(Flag)
- 为什么梯度是函数变化最快的方向
- Show or hide password plaintext + password box verification information
- The 5th Digital China Construction summit opened in Fuzhou, Fujian
- ETL development tool kettle download installation environment construction and use tutorial
- How to solve the problem that yaml in idea is unrecognized or red?
猜你喜欢

Today's sleep quality record 79 points

Ionic4 learning notes 4 -- add a tab page

Mysqlworkbench performance analysis tool -- Performance dashboard

Is the validity period of the root certificate as long as the server SSL certificate?

为什么梯度是函数变化最快的方向

【微信小程序开发】自定义tabBar案例(定制消息99+小红心)

Oracle EBS form common objects and their relationships

Windowing function (1) - top three employees of department salary

Typora is still the most beautiful and beautiful document editing artifact of yyds in my heart. I believe you will never abandon it

04-分布式资源管理系统YARN
随机推荐
Date function format conversion
Highcharts chart and report display, export data
Cf. bits and pieces (subset pressing DP + pruning)
04 distributed resource management system yarn
Typora is still the most beautiful and beautiful document editing artifact of yyds in my heart. I believe you will never abandon it
树链剖分板子
Vsftpd2.3.4 port penetration 6200 IRC_ 3281_ backdoor
Mysql——》BufferPool相关信息
Escape character in JS?
Ionic4 learning notes 11 - popular goods display of an East Project
The 5th Digital China Construction summit opened in Fuzhou, Fujian
Pytorch的旅程一:线性模型
理解动态计算图,requires_grad、zero_grad
[record of question brushing] 20. Valid brackets
The assignment and answer of the "Cyberspace Security" competition of the 2020 secondary vocational group in Zhejiang Province (flag)
理解corners_align,两种看待像素的视角
["code" power is fully open, and "chapter" shows strength] list of contributors to the task challenge in the first quarter of 2022
Make C #
【TkInter】布局管理和事件系统
CF Lomsat gelral(启发式合并)