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
93
How Plumbr uses Kafka
nikem
0
100
Introduction to Druid
nikem
0
870
Deceived by monitoring
nikem
0
70
10% Happier
nikem
0
73
Where is my memory
nikem
0
470
First steps in GC tuning
nikem
0
1.6k
I bet you have a memory leak
nikem
1
170
Plumbing Memory Leaks
nikem
1
150
Other Decks in Programming
See All in Programming
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
5.9k
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
110
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
170
CSC307 Lecture 03
javiergs
PRO
1
490
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
AgentCoreとHuman in the Loop
har1101
5
210
Pythonではじめるオープンデータ分析〜書籍の紹介と書籍で紹介しきれなかった事例の紹介〜
welliving
3
860
SourceGeneratorのススメ
htkym
0
170
Apache Iceberg V3 and migration to V3
tomtanaka
0
120
プロダクトオーナーから見たSOC2 _SOC2ゆるミートアップ#2
kekekenta
0
170
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
200
gunshi
kazupon
1
150
Featured
See All Featured
Darren the Foodie - Storyboard
khoart
PRO
2
2.3k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
AI: The stuff that nobody shows you
jnunemaker
PRO
2
230
Six Lessons from altMBA
skipperchong
29
4.1k
First, design no harm
axbom
PRO
2
1.1k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
61
49k
HDC tutorial
michielstock
1
340
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
9.9k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
50
Embracing the Ebb and Flow
colly
88
5k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
160
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.