Custom Search

Sunday, May 15, 2016

How to take core dump of a running process

1)
Method-1

$ gdb --pid=26426
(gdb) gcore
Saved corefile core.26426
(gdb) detach

2)
Method-2

$gcore pid_of_running_process
$gcore pid_of_running_process -o core_dump_file

3)
Method-3

* You can send signals which has action=core to the running process to take core dump.

$kill [signal] [pid]
Example:
$kill -SIGQUIT process_id




1 comment:

  1. http://www.lognormal.com/blog/2012/09/27/linux-tcpip-tuning/

    ReplyDelete