gcore command
Sponsored AdsThe gcore utility creates a core image of the specified process, suitable for use with gdb(1). By default, the core is written to the file “core.<pid>”.
The process identifier, pid, must be given on the command line. If no executable image is specified, gcore will use “/proc/<pid>/file”.
gcore [-s] [-c core] [executable] pid
The following options are available:
-c Write the core file to the specified file instead of “core.<pid>”.
-s Stop the process while gathering the core image, and resume it when done. This guarantees that the resulting core dump will be in a consistent state.
The process is resumed even if it was already stopped. The same effect can be achieved manually with kill(1).
Related Posts:
Tags: gcore, Linux Command, process
[...] Use the gcore command to get an application core to analyze the application’s memory [...]