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
120
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
89
Node.js Contributor Workshop
gioyik
0
77
Profile & Analyze Node.js Applications like a Pro
gioyik
1
71
Leak Hunting - Finding and debugging a memory leak in Nodejs.pdf
gioyik
1
910
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
LLM 機能を支える Langfuse / ClickHouse のサーバレス化
yuu26
9
1.6k
Eval-Centric AI: Agent 開発におけるベストプラクティスの探求
asei
0
120
金融サービスにおける高速な価値提供とAIの役割 #BetAIDay
layerx
PRO
1
820
Lambda management with ecspresso and Terraform
ijin
2
160
生成AI時代におけるAI・機械学習技術を用いたプロダクト開発の深化と進化 #BetAIDay
layerx
PRO
1
1.2k
マルチプロダクト×マルチテナントを支えるモジュラモノリスを中心としたアソビューのアーキテクチャ
disc99
1
470
バクラクによるコーポレート業務の自動運転 #BetAIDay
layerx
PRO
1
930
Claude CodeでKiroの仕様駆動開発を実現させるには...
gotalab555
3
1k
MCP認可の現在地と自律型エージェント対応に向けた課題 / MCP Authorization Today and Challenges to Support Autonomous Agents
yokawasa
5
2.3k
Amazon Q Developerを活用したアーキテクチャのリファクタリング
k1nakayama
2
210
Agent Development Kitで始める生成 AI エージェント実践開発
danishi
0
140
React Server ComponentsでAPI不要の開発体験
polidog
PRO
0
210
Featured
See All Featured
A Tale of Four Properties
chriscoyier
160
23k
How to train your dragon (web standard)
notwaldorf
96
6.2k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.9k
GraphQLとの向き合い方2022年版
quramy
49
14k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
Optimizing for Happiness
mojombo
379
70k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
800
We Have a Design System, Now What?
morganepeng
53
7.7k
Practical Orchestrator
shlominoach
190
11k
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!