当前位置:网站首页>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
边栏推荐
- System Verilog - function and task
- Judging the number of leap years from 1 to N years
- One question per day, a classic simulation question
- 关于win10 版本kicad 卡死的问题, 版本6.x
- From 408 to independent proposition, 211 to postgraduate entrance examination of Guizhou University
- What moment makes you think there is a bug in the world?
- Using Sphinx to automatically generate API documents from py source files
- 【Try to Hack】vulnhub DC1
- Character encoding minutes
- Position (5 ways)
猜你喜欢

Arithmetic operations and expressions

Review of arrays and pointers triggered by a topic

Gif动画怎么在线制作?快试试这款gif在线制作工具
![[Ocean University of China] information sharing for the first and second examinations of postgraduate entrance examination](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[Ocean University of China] information sharing for the first and second examinations of postgraduate entrance examination

Ideal L9 in the eyes of the post-90s: the simplest product philosophy, creating the most popular products

C language escape character and its meaning

Learning notes on February 18, 2022 (C language)

弹性布局(display:flex;)属性详解

Application of TSDB in civil aircraft industry

QT loading third-party library basic operation
随机推荐
User defined data type - structure
Function of getinstance() method
Daily question, magic square simulation
2. operator and expression multiple choice questions
Character encoding minutes
15 -- k points closest to the origin
SPARQL learning notes of query, an rrdf query language
Luogu p5707 [deep foundation 2. example 12] late for school
Why should the coroutine be set to non blocking IO
System Verilog - data type
Uniapp icon configuration
About the problem of kicad stuck in win10 version, version 6 x
System Verilog - function and task
How to view the Chrome browser plug-in location
开餐馆
Design and implementation of thread pool
How to crop GIF dynamic graph? Take this picture online clipping tool
p1408
Learning notes on February 18, 2022 (C language)
Biscuit distribution