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
Heap, off you go
Search
Nikita Salnikov-Tarnovski
May 23, 2015
Programming
0
1.2k
Heap, off you go
Nikita Salnikov-Tarnovski
May 23, 2015
Tweet
Share
More Decks by Nikita Salnikov-Tarnovski
See All by Nikita Salnikov-Tarnovski
Project clarity - random rant from an old engineer
nikem
0
65
How Plumbr uses Kafka
nikem
0
84
Introduction to Druid
nikem
0
810
Deceived by monitoring
nikem
0
45
10% Happier
nikem
0
57
Where is my memory
nikem
0
410
First steps in GC tuning
nikem
0
1.5k
I bet you have a memory leak
nikem
1
150
Plumbing Memory Leaks
nikem
1
110
Other Decks in Programming
See All in Programming
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
920
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
750
⼤規模⾔語モデルの拡張(RAG)が 終わったかも知れない件について
nearme_tech
23
15k
dbtのドメイン分割による データ基盤の改善とDigdagとの連携
sakama
0
200
デフォルトにして至高、RubyMineの大好きな所
ruzia
0
320
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
240
Netty Chicago Java User Group 2024-04-17
sullis
0
170
Scalable Customer Journey Orchestration (CJO)
lewuathe
0
200
Apache Hive 4 on Treasure Data
ryukobayashi
0
200
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
0
880
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
4
960
大規模UIKitベースアプリへのTCAの段階的導入/gradual-adoption-of-tca-in-a-large-scale-uikit-based-app
takehilo
1
140
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
Reflections from 52 weeks, 52 projects
jeffersonlam
345
19k
Mobile First: as difficult as doing things right
swwweet
216
8.6k
Six Lessons from altMBA
skipperchong
21
3k
Embracing the Ebb and Flow
colly
80
4.1k
Documentation Writing (for coders)
carmenintech
60
3.9k
Atom: Resistance is Futile
akmur
259
25k
Git: the NoSQL Database
bkeepers
PRO
422
63k
Become a Pro
speakerdeck
PRO
11
4.5k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
78
42k
Making Projects Easy
brettharned
108
5.5k
Transcript
Heap, off you go
Who am I • Nikita Salnikov-Tarnovski • Founder and Master
Developer from • We solve performance problems • @iNikem, http://github.com/iNikem/offheap
JVM and memory • One of the reasons Java became
so popular back in 90s is automatic memory management • No malloc and free • You just create objects and let JVM handle all the rest
Garbage goes to Heap
Garbage Collector
Garbage Collector • A subsystem of JVM • He handles
garbage • In a “transparent” way • Or so they thought
When much is too much • If you produce too
much garbage, cleaning it is expensive • More objects - more time to clean
Solution? • Litter where no one sees :) • Off
the heap • Which means in native memory
Why is this good? • You can throw things around
all the way you want • And no once will say a word
But… • You still have to clean things yourself eventually
• You have to break your objects into tiny flat pieces
Flat object public class Trade { public int ticket; public
int amount; public int price; public boolean buy; }
Stop talking! Show me the code! • Demo time
Solving performance problems is hard. We don’t think it needs
to be.