Introducing heapdump to allow collecting more data from the server

This commit is contained in:
Caleb James DeLisle 2018-01-16 11:53:23 +01:00
parent f3167964f4
commit 137c6428e8
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,13 @@
globals module
*/
var domain = ' http://localhost:3000/';
// You can `kill -USR2` the node process and it will write out a heap dump.
// If your system doesn't support dumping, comment this out and install with
// `npm install --production`
// See: https://strongloop.github.io/strongloop.com/strongblog/how-to-heap-snapshots/
require('heapdump');
module.exports = {
// the address you want to bind to, :: means all ipv4 and ipv6 addresses

View File

@ -12,6 +12,7 @@
},
"devDependencies": {
"flow-bin": "^0.59.0",
"heapdump": "^0.3.9",
"jshint": "~2.9.1",
"less": "2.7.1",
"lesshint": "^4.5.0",