Why ?
If
a process got crashed then creating a crash dump files that is contains everything
occur to analysis it to find the source cause of this issue, below is steps to create
this dump files.
How ?
Below
is steps to create a dump file for a specific process :
1- As a root user find and change directory to that process :
cd /path/of/process/fle
ps aux | grep process
2- To make sure parameter files
allow any size of dump :
prlimit --pid <PID process> --core=unlimited
3- To create the core dump file
gdb process <PID>
(gdb) generate-core-file
(gdb) detach
4- To create an analysis file of that core dump to read it as
well
python lib_extractor.py process /path/to/file/core.<PID
process>
No comments:
Post a Comment