nearform / autopsy

dissect your dead node services with mdb via a smart os vm
89 stars 9 forks source link

document that you can generate a core dump with gdb #3

Open ghost opened 8 years ago

ghost commented 8 years ago

You can generate a coredump like:

# get your pid
pgrep -lf node

# attach
gdb -p your_pid

Then in gdb:

# gdb: generate core dump
gcore

# gdb: detach
detach

Now you have a core dump without having to crash your process.

davidmarkclements commented 8 years ago

that's awesome - could you turn that into a PR and I'll accept?

yoshuawuyts commented 8 years ago

This is so good!