Главная
Study mode:
on
1
Intro
2
Who Am I?
3
A Bit of History
4
Problem Statement
5
Map/Cache Best Practices
6
Replace What?
7
JDK HashMap
8
OffHeap Map
9
Storing Key & Values
10
Options with 64 bits available
11
A Native Heap Allocator
12
Marshaling
13
Java Serialization Sucks
14
OffHeap's Serialization Sucks Less?
15
Where did the 59 bytes go?
16
Serialization is pretty malleable
17
j.u.c.ConcurrentMap
18
Happens Before Relationships
19
Simple solution
20
Moar Write Concurrency!
21
Conclusions
22
Additional Topics
Description:
Explore the intricacies of Terracotta's open-sourced OffHeap library in this 50-minute Devoxx conference talk. Delve into how this unique offheap library operates without byte code engineering, modified JVMs, non-standard APIs, or JNI. Discover its capabilities in providing maps and caches with minimal per-key heap overheads, scaling up to 6TB in a single node and 1TB in a single map. Learn how well-established computer science concepts from managed and unmanaged programming environments combine to create a stable, reliable, and useful library. Gain insights into map and cache best practices, JDK HashMap, OffHeap Map implementation, key and value storage techniques, native heap allocation, marshaling, and improved serialization methods. Explore concurrent map implementations, happens-before relationships, and solutions for enhanced write concurrency. Uncover the underlying principles that make this open-source project a powerful tool for efficient memory management and scalability in Java applications. Read more

Terracotta’s OffHeap Explained

Devoxx
Add to list
0:00 / 0:00