Creates a coredump of the current process, without killing it
npm install dumpmeCreates a coredump of the current process, without killing it.
Supports Linux Kernel Hardening options.
* gdb/gcore must be installed on the system
obviously, works only on nix systems
#### dumpme([gcore], [coredump])
Where:
* gcore is the path and filename of the gcore binary (default: gcore)
* coredump is the path + file name of the coredump file to create (default: core.)
Returns a Boolean as an indicator of success/failure.
``js
const dumpme = require('dumpme');
dumpme();
``
The only alternative to gcore is to use google-coredumper, which is done by node-gcore.
Using google coredumper programatically is way cleaner than gcore, but it has the following issues:
* coredumps generated by Google coredumper are not compatible with llnode (see https://github.com/nodejs/llnode/issues/61)
* Google coredumper might not work with newer Linux distributions (mainly due to Kernel Hardening features, but not only), and it seems unmaintained since 2008