hapi plugin for taking a process dump and cleaning up after an uncaught exception
Lead Maintainer: Colin Ihrig
uncaughtException is encountered a heap dump will be output to the
plugin folder. A log file is also written containing the exception details.
After this is complete the process will exit with a failure code. Heap dumps can
also be taken at arbitrary times by sending a
SIGUSR1 signal to the server
The following example shows how to register and configure
poop. In this example,
an uncaught exception is thrown after
poop is registered. This will trigger a
heap dump and
poop.log file to be created.
'use strict';var Path = ;var Hapi = ;var Poop = ;var server = ;server;
The following options are available when configuring
The directory to place heap dump files. Defaults to the process current working directory.
The file path to log any uncaught exception errors. Defaults to
the process current working directory.
Options passed to the write stream of the log file. Uses Node's defaults:
flags: 'w'encoding: nullfd: nullmode: 0666