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 Leaks
Search
Giovanny Gongora
December 12, 2019
Technology
0
76
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
44
Node.js Contributor Workshop
gioyik
0
29
Profile & Analyze Node.js Applications like a Pro
gioyik
1
43
Leak Hunting - Finding and debugging a memory leak in Nodejs.pdf
gioyik
1
760
Finding and debugging a memory leak in Node.js
gioyik
0
130
Road to LISP heaven
gioyik
1
81
Leak Hunting: Finding and debugging a memory leak in Node.js
gioyik
0
470
Performance first: Node.js and Rust
gioyik
0
130
Time for Growth
gioyik
0
110
Other Decks in Technology
See All in Technology
AWSでRAGを作る法方
sonoda_mj
1
140
CTOから見た事業開発とプロダクト開発 / My Perspective on Business and Product Development as CTO
keisuke69
4
960
AutomatedLabを使って内部ペンテストを勉強しよう! -やられ社内ネットワークの自動構築-
n_etupirka
1
610
累計ダウンロード数1億8000万を超えるアプリケーションプラットフォームのレガシーシステム脱却とモダン化への道
kmitsuhashi
0
120
DevIO2024_レガシー運用からの脱却 -クラウド活用の実践事例とベストプラクティス-
jun2882
0
210
開発と事業を繋ぐ!SREのオブザーバビリティ戦略 ~ Developers Summit 2024 Summer ~
leveragestech
0
630
地理情報とAPIのトレンド
nagix
0
160
LLMアプリケーションの評価の実践と課題 ~PharmaXにおける今後の展望~
pharma_x_tech
2
160
Datadog Cloud SIEMを使ってAWS環境の脅威を可視化した話/lifeistech-datadog-cloud-siem
gidajun
0
480
What if...? 처음부터 다시 LLM 어플리케이션을 개발한다면
huffon
0
1k
Azure AI ことはじめ
tsubakimoto_s
0
130
Luupの開発組織におけるインシデントマネジメントの変遷 ver.RoadtoSRENEXT2024
grimoh
1
270
Featured
See All Featured
Building Applications with DynamoDB
mza
89
5.8k
Large-scale JavaScript Application Architecture
addyosmani
506
110k
Music & Morning Musume
bryan
43
5.9k
Rails Girls Zürich Keynote
gr2m
93
13k
Rebuilding a faster, lazier Slack
samanthasiow
78
8.5k
Building Flexible Design Systems
yeseniaperezcruz
323
37k
Building an army of robots
kneath
301
42k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
24
1.8k
The Cult of Friendly URLs
andyhume
75
5.9k
Facilitating Awesome Meetings
lara
46
5.8k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
18
1.2k
Happy Clients
brianwarren
94
6.5k
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!