Skip to content

Latest commit

 

History

History
57 lines (29 loc) · 1.19 KB

memoryLeak.md

File metadata and controls

57 lines (29 loc) · 1.19 KB

Hunting Bluebirds (...or bird ghosts?)

Note: Going to: Detective story - tools for the hunter

whoami

Fredrik Liljegren @fiddur

auth0logo Auth0

Note: NodeJs is garbage collected - saw tooth

Memory normal

Leaking

Node 8.8

Let's code...

Note:

  • 1.js - try, dump, compare, gc, compare, dump, dump, compare

  • 2.js - ... process.stdout.write \n

  • 3.js

  • 4.js

  • Down hosts - timeout of 228 seconds: login0.myauth0.com:9229

  • Heapdump

In conclusion

  • chrome://inspect
  • Get a baseline (do 100 req)
  • Collect garbage
  • Produce volume
  • Beware of sensor echoes (use heapdump)

Happy hunting