Skip to content

Instantly share code, notes, and snippets.

@richardlau
Created October 28, 2016 18:40
Show Gist options
  • Save richardlau/28214a917a1db97f5ef2a1f65e01c69d to your computer and use it in GitHub Desktop.
Save richardlau/28214a917a1db97f5ef2a1f65e01c69d to your computer and use it in GitHub Desktop.
api_call.js: triggering a NodeReport via API call...
Writing Node.js report to file: NodeReport.20161028.143703.61091.001.txt
Node.js report completed
exception.js: throwing an uncaught user exception....
Writing Node.js report to file: NodeReport.20161028.143703.61097.001.txt
fatalerror.js: allocating excessive javascript heap memory....
loop.js: going into loop now.... use kill -USR2 <pid> to trigger NodeReport
Node.js report completed
Uncaught #<UserException>
FROM
myException (/home/users/riclau/sandbox/scratch/test/pkgtest/node_modules/nodereport/test/test_2.js:7:3)
Object.<anonymous> (/home/users/riclau/sandbox/scratch/test/pkgtest/node_modules/nodereport/test/test_2.js:15:1)
Module._compile (module.js:570:32)
Object.Module._extensions..js (module.js:579:10)
Module.load (module.js:487:32)
tryModuleLoad (module.js:446:12)
Function.Module._load (module.js:438:3)
Module.runMain (module.js:604:10)
run (bootstrap_node.js:394:7)
startup (bootstrap_node.js:149:9)
bootstrap_node.js:509:3
<--- Last few GCs --->
341 ms: Mark-sweep 22.5 (55.8) -> 22.5 (55.8) MB, 46.5 / 0.0 ms (+ 0.8 ms in 4 steps since start of marking, biggest step 0.4 ms) [allocation failure] [GC in old space requested].
387 ms: Mark-sweep 22.5 (55.8) -> 22.5 (55.8) MB, 45.3 / 0.0 ms [allocation failure] [GC in old space requested].
430 ms: Mark-sweep 22.5 (55.8) -> 22.5 (33.8) MB, 43.4 / 0.0 ms [last resort gc].
475 ms: Mark-sweep 22.5 (33.8) -> 22.5 (33.8) MB, 45.0 / 0.0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x31a16fecfb51 <JS Object>
2: /* anonymous */ [/home/users/riclau/sandbox/scratch/test/pkgtest/node_modules/nodereport/test/test_3.js:~1] [pc=0xbb6c8b6032a] (this=0x35bb867ce29 <an Object with map 0xd0be15075e9>,exports=0x35bb867ce29 <an Object with map 0xd0be15075e9>,require=0x35bb867d011 <JS Function require (SharedFunctionInfo 0x35bb865f419)>,module=0x35bb867cf89 <a Module with map 0x262ba4e1bd81>,__filename=0x35b...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
Writing Node.js report to file: NodeReport.20161028.143704.61099.001.txt
<--- Last few GCs --->
565 ms: Mark-sweep 22.5 (43.8) -> 22.5 (43.8) MB, 44.0 / 0.0 ms [allocation failure] [GC in old space requested].
609 ms: Mark-sweep 22.5 (43.8) -> 22.5 (55.8) MB, 43.6 / 0.0 ms [allocation failure] [GC in old space requested].
652 ms: Mark-sweep 22.5 (55.8) -> 22.5 (33.8) MB, 43.4 / 0.0 ms [last resort gc].
698 ms: Mark-sweep 22.5 (33.8) -> 22.5 (33.8) MB, 45.6 / 0.0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
6: /* anonymous */ [/home/users/riclau/sandbox/scratch/test/pkgtest/node_modules/nodereport/test/test_3.js:~1] [pc=0xbb6c8b6032a] (this=0x35bb867ce29 <an Object with map 0xd0be15075e9>,exports=0x35bb867ce29 <an Object with map 0xd0be15075e9>,require=0x35bb867d011 <JS Function require (SharedFunctionInfo 0x35bb865f419)>,module=0x35bb867cf89 <a Module with map 0x262ba4e1bd81>,__filename=0x35bb867cf19 <String[86]: /home/users/riclau/sand...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
Writing Node.js report to file: NodeReport.20161028.143704.61104.001.txt
Node.js report completed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment