当前位置:网站首页>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
边栏推荐
- Iterator failure condition
- Dmsetup command
- QT inline dialog
- Is it safe to open a stock account online?
- [Ocean University of China] Data Sharing for retest of initial Examination
- Native JS obtains form data and highlights and beautifies JSON output display
- dev/mapper的解释
- 【Try to Hack】vulnhub DC1
- From 408 to independent proposition, 211 to postgraduate entrance examination of Guizhou University
- 14 -- validate palindrome string II
猜你喜欢

定位position(5种方式)

Judging the number of leap years from 1 to N years
![[Ocean University of China] Data Sharing for retest of initial Examination](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[Ocean University of China] Data Sharing for retest of initial Examination

JGG | 河北大学杜会龙组综述植物泛基因组学研究

Review of arrays and pointers triggered by a topic

Learning notes on February 8, 2022 (C language)

Time stamp calculation and audio-visual synchronization of TS stream combined video by ffmpeg protocol concat

How to crop GIF dynamic graph? Take this picture online clipping tool

关于win10 版本kicad 卡死的问题, 版本6.x

弹性布局(display:flex;)属性详解
随机推荐
‘make_ unique’ is not a member of ‘std’
QT loading third-party library basic operation
User defined data type - structure
移除区间(贪心)
Real variable instance
Automatic correlation between QT signal and slot
Learning notes on February 18, 2022 (C language)
What is the safest app for stock account opening? Tell me what you know
QT database connection
NBD Network Block Device
JS determines whether two values are equal, and compares any two values, including array objects
JS capture, target, bubble phase
Extend JS copy content to clipboard
basic_ String mind map
JS Base64 Library Learning
JGG | overview of duhuilong group of Hebei University Research on plant pan genomics
System Verilog - thread
Where is it safe to open an account for buying funds? Ask for guidance
JS select all exercise
One question per day, a classic simulation question