当前位置:网站首页>Generation method and usage of coredump
Generation method and usage of coredump
2022-06-25 14:58:00 【qq_ twenty-three million nine hundred and fifty-three thousand 】
1, How to enable generation coredump file
echo “ulimit -c 1024” >> /etc/profile // Limit generation core The size of the file is 1024KB
Or input directly on the console ulimit -c // Don't limit core File size
Remove the restrictions ulimit -c unlimited
2, Check to see if it opens
ulimit -a see
3, modify core File storage path
echo “/corefile/core-%e-%p-%t” > /proc/sys/kernel/core_pattern
%e Command name
%p pid
%t Time stamp
4, debugging
gdb main /corefile/xxxxxx
5,core The default storage path for files
cat /proc/sys/kernel/core_pattern Just view it in the file
ulimit Introduce
type
soft: The effective value of the current system
hard The maximum value set in the current system
soft The limits of can't be compared with hard High limit of
resource:
core - Limit the size of kernel files
date - Maximum data size
fsize - Maximum file size
memlock - Maximum locked memory address space
nofile - Maximum number of open files
rss - Maximum persistent setting size
stack - Maximum stack size
cpu - Most in minutes CPU Time
noproc - The maximum number of processes
as - Address space limit
maxlogins - The maximum number of logins allowed for this user
ulimit working principle
1,ulimit Is configured in /etc/security/limits.conf in
2,limits.conf yes pam_limits.so Configuration file for , When users use pam Load on module /etc/pam.d Next service
How to make ulimit The settings of are permanently effective
explain :
1, Simply set ulimit -c unlimited Only effective for the currently logged in session
Permanent effective method
1, stay /root/.bash_profile Add ulimit -c unlimited
2,source /root/.bash_profile that will do
边栏推荐
- One question per day, punch in
- Js- get the mouse coordinates and follow them
- Clinical chemistry | zhangjianzhong / Xu Jian develop single cell precision diagnosis and treatment technology for Helicobacter pylori
- Clipboard tutorial
- Add the resources directory under test in idea
- Flexible layout (display:flex;) Attribute details
- Why should the coroutine be set to non blocking IO
- Go closure usage example
- How to cut the size of a moving picture? Try this online photo cropping tool
- 【Try to Hack】vulnhub DC1
猜你喜欢

Js- get the mouse coordinates and follow them

多张动图怎样合成一张gif?仅需三步快速生成gif动画图片

User defined data type - structure

从408改考自主命题,211贵州大学考研改考

How to cut the size of a moving picture? Try this online photo cropping tool

定位position(5种方式)

Thymeleaf Usage Summary

Using Sphinx to automatically generate API documents from py source files

QQ情话糖果情话内容获取并保存

开餐馆
随机推荐
p1408
分饼干问题
JS to verify whether the string is a regular expression
basic_ String mind map
网上办理股票开户安全吗?
QT database connection
分饼干问题
多张动图怎样合成一张gif?仅需三步快速生成gif动画图片
@Font face fonts only work on their own domain - @font-face fonts only work on their own domain
2022年广东高考分数线出炉,一个几家欢喜几家愁
In 2022, the score line of Guangdong college entrance examination was released, and several families were happy and several worried
Add a string at the input and textarea cursors
Source code analysis of synergetics and ntyco
Native JS obtains form data and highlights and beautifies JSON output display
New good friend Pinia, leading the new era of state management
JGG | 河北大学杜会龙组综述植物泛基因组学研究
For the first time in China, Chinatelecom 5g underground personnel positioning project is officially commercial: it can track the position in real time to ensure operation safety
QT database connection deletion
How to cut the size of a moving picture? Try this online photo cropping tool
从408改考自主命题,211贵州大学考研改考