HomeSolarisSolaris system administrationSolaris: Generate a Core Dump from a Running Process with gcore

Solaris: Generate a Core Dump from a Running Process with gcore

A core dump is a snapshot of the memory occupied by a process plus additional debugging information. Core files are typically generated when a process terminates unexpectedly. This tech-recipe describes how to generate a core file manually from a running process.


To generate a core file named ‘core’ in the current working directory for a process with the id of 345, use the following:

gcore 345

If you want to control the name of the core dump file, use the -o option with a filename or path and filename, such as core.test or /tmp/core.1

gcore -o /tmp/core.1 345

Quinn McHenry
Quinn McHenry
Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
RELATED ARTICLES

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular

Recent Comments

Cleveland Furia on How to Clear Google Activity
Sid Wohlfarth on How to Clear Google Activity
Riley Magsayo on How to Clear Google Activity
สมัครรับเครดิตฟรี ทันที on How to improve Remote Desktop Protocol Performance
Neal Wangstad on How to Clear Google Activity
Slavcho Andov on How to install Ubuntu
Slavcho Andov on How to fix bad sectors
Sheraz Ali on How to Backup Android