outmoded / poop Goto Github PK
View Code? Open in Web Editor NEWhapi plugin for handling uncaught exceptions
License: Other
hapi plugin for handling uncaught exceptions
License: Other
By looking at the process uncaught exception handler code, the process is being shutdown immediately after the heapdump.
I think that one preferable way of doing would be to close the server (not accepting further connections), wait for all the pending requests to finish (with a timeout) and then exiting the process.
Is this something you might be interested in? If so, I can submit a PR.
The second test (which uses the USR1 signal) is failing on node 0.11.14. The second snapshot is not being written out. The problem does not exist in 0.10.x or 0.11.13. Encountered this while updating to hapi 7 and lab 5, but the problem exists on master prior to making these changes.
UPDATE: Simply requiring hapi seems to cause problems with the heapdump module. The following test case hangs in 0.11.14. Also see bnoordhuis/node-heapdump#41
var Hapi = require('hapi');
var HeapDump = require('heapdump');
HeapDump.writeSnapshot(function () {
console.log('writeSnapshot() callback');
});
Don't you think it would be better to use fs.appendFile
instead of the current strategy ?
Auto-restarting services will erase the previous crash.
Need to be able to specify the location where a heapdump is created
Hey there, I was trying to install poop for one of my projects on my windows machine. However It always fails with "Failed at the [email protected] install script 'node-gyp rebuild'. "
Is there any suggestions you would be able to offer me for a solution?
Hi,
Using Hapi 10 here and was curious why the heap dump isn't saved to the same directory as poop.log
. Is this intentional or a bug?
Poop on,
James
Use Code to replace Chai
Hi, this is a great tool. I find it very useful. Just one question, is there an option to not create a heapdump? I just want the poop.log, but I don't want this huge heapdump file. Thanks.
Just need to add attributes
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.