Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Memory Chronicles: Manage, Trace and Fix Memory...
Search
Giovanny Gongora
December 12, 2019
Technology
0
130
Memory Chronicles: Manage, Trace and Fix Memory Leaks
Talk at Node+JS Interactive 2019
Giovanny Gongora
December 12, 2019
Tweet
Share
More Decks by Giovanny Gongora
See All by Giovanny Gongora
Profile & Analyze Node.js Applications
gioyik
0
92
Node.js Contributor Workshop
gioyik
0
79
Profile & Analyze Node.js Applications like a Pro
gioyik
1
71
Leak Hunting - Finding and debugging a memory leak in Nodejs.pdf
gioyik
1
920
Finding and debugging a memory leak in Node.js
gioyik
0
180
Road to LISP heaven
gioyik
1
110
Leak Hunting: Finding and debugging a memory leak in Node.js
gioyik
0
540
Performance first: Node.js and Rust
gioyik
0
180
Time for Growth
gioyik
0
140
Other Decks in Technology
See All in Technology
シークレット管理だけじゃない!HashiCorp Vault でデータ暗号化をしよう / Beyond Secret Management! Let's Encrypt Data with HashiCorp Vault
nnstt1
3
220
クラウドセキュリティを支える技術と運用の最前線 / Cutting-edge Technologies and Operations Supporting Cloud Security
yuj1osm
2
270
LLMを搭載したプロダクトの品質保証の模索と学び
qa
0
720
なぜテストマネージャの視点が 必要なのか? 〜 一歩先へ進むために 〜
moritamasami
0
110
kubellが考える戦略と実行を繋ぐ活用ファーストのデータ分析基盤
kubell_hr
0
140
「何となくテストする」を卒業するためにプロダクトが動く仕組みを理解しよう
kawabeaver
0
170
サンドボックス技術でAI利活用を促進する
koh_naga
0
180
【初心者向け】ローカルLLMの色々な動かし方まとめ
aratako
7
3.2k
落ちる 落ちるよ サーバーは落ちる
suehiromasatoshi
0
140
個人CLAUDE.md紹介と設定から学んだこと/introduce-my-claude-md
shibayu36
0
200
ヘブンバーンズレッドにおける、世界観を活かしたミニゲーム企画の作り方
gree_tech
PRO
0
540
Agile PBL at New Grads Trainings
kawaguti
PRO
1
270
Featured
See All Featured
A Tale of Four Properties
chriscoyier
160
23k
Producing Creativity
orderedlist
PRO
347
40k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
111
20k
Statistics for Hackers
jakevdp
799
220k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
What's in a price? How to price your products and services
michaelherold
246
12k
Optimizing for Happiness
mojombo
379
70k
Facilitating Awesome Meetings
lara
55
6.5k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.6k
Being A Developer After 40
akosma
90
590k
Designing for humans not robots
tammielis
253
25k
Faster Mobile Websites
deanohume
309
31k
Transcript
Memory Chronicles: Manage, Trace and Fix Memory Leaks Giovanny Gongora
@Gioyik
Giovanny
[email protected]
@gioyik
© 2019 NodeSourc e What is this really?
© 2019 NodeSourc e See you at 2pm!
Who had a memory issue with a Node.js application before?
It happens in real life, happens in TNT
Heap profiler & Timeline
When to use them?
Workflow for diagnosing memory leaks?
TST
Three Snapshot Technique
What do the Shallow and Retained Size columns represent?
Where should I start digging into to discover if I
have a leak?
Redacted snapshots
Core Dumps
Create a Core dump
--abort-on-uncaught-exception
LLDB
Llnode
Caveats
llnode’s coupling to V8
Promises (?)
Async / Await FTW!
Tips for different situations
Case #1: Server Side Rendering (SSR)
Case #2: Monitoring tools
Case #3 Close your connections
Case #4: Look for agnostic serve pages solution
Case #5: Review you <THIS-to-THIS> packages
Case #6: Keep naming you functions
Case #6: Check how reliable are your 3rd services
Crazy … right?
Thank you!