Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Memory Chronicles: Manage, Trace and Fix Memory Leaks
Giovanny Gongora
December 12, 2019
Technology
0
31
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
25
Node.js Contributor Workshop
gioyik
0
18
Profile & Analyze Node.js Applications like a Pro
gioyik
1
26
Leak Hunting - Finding and debugging a memory leak in Nodejs.pdf
gioyik
1
520
Finding and debugging a memory leak in Node.js
gioyik
0
120
Road to LISP heaven
gioyik
1
62
Leak Hunting: Finding and debugging a memory leak in Node.js
gioyik
0
430
Performance first: Node.js and Rust
gioyik
0
120
Time for Growth
gioyik
0
110
Other Decks in Technology
See All in Technology
Embedded SRE at Mercari
tcnksm
0
790
THETA Xの登場はジオ業界を変えるか?
furuhashilab
0
160
Research Paper Introduction #98 "NSDI 2022 recap"
cafenero_777
0
200
読者のことを考えて書いてみよう / Write with your reader in mind
line_developers
PRO
3
290
Puny to Powerful PostgreSQL Rails Apps
andyatkinson
PRO
0
200
AWS CloudShellという推しサービスについて / lt-20220502-jawsug-cli
becominn
0
640
20220510_簡単にできるコスト異常検出(Cost Anomaly Detection) /jaws-ug-asa-cost-anomaly-detection-20220510
emiki
2
310
【OCHaCafe#5】その Pod 突然落ちても大丈夫ですか?
k6s4i53rx
1
120
LINEスタンプの実例紹介 小さく始める障害検知・対応・振り返りの 改善プラクティス
line_developers
PRO
3
1.3k
[SRE NEXT 2022]ヤプリのSREにおけるセキュリティ強化の取り組みを公開する
mmochi23
1
280
アルプの 認証/認可分離戦略と手法
ma2k8
PRO
1
110
失敗しない条件付きアクセス Season 3
sophiakunii
0
1.3k
Featured
See All Featured
KATA
mclloyd
7
8.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
237
19k
Making the Leap to Tech Lead
cromwellryan
113
6.9k
How New CSS Is Changing Everything About Graphic Design on the Web
jensimmons
212
11k
How to Ace a Technical Interview
jacobian
265
21k
How GitHub Uses GitHub to Build GitHub
holman
465
280k
The Invisible Side of Design
smashingmag
289
48k
Learning to Love Humans: Emotional Interface Design
aarron
261
37k
Six Lessons from altMBA
skipperchong
14
1.3k
How STYLIGHT went responsive
nonsquared
85
3.9k
GraphQLとの向き合い方2022年版
quramy
16
8.1k
Scaling GitHub
holman
451
140k
Transcript
Memory Chronicles: Manage, Trace and Fix Memory Leaks Giovanny Gongora
@Gioyik
Giovanny gio@nodesource.com @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!