Die Konferenzen für Java, Architektur- und Software-Innovation

No Free Lunch? Memory Allocation in the JVM

Until conference starts:
✓ Save up to € 259
✓ Group discount
Register now
Bis Konferenzbeginn:
✓ Bis zu 259 € sparen
✓ 5-Tages-Special
✓ Kollegenrabatt
Jetzt anmelden
Thank you for attending
✓ See you in 2022
Danke für Ihre Teilnahme
✓ Wir sehen uns in 2022
Donnerstag, 6. Mai 2021
10:30 - 11:30

Ever wondered how memory allocation on the JVM works?

The Java Virtual Machine features many generational garbage collectors that also use pointer bumping for allocation. The combination of these two techniques gives a fast allocation and collection path which has led to a commonly held belief in the Java community that allocation in general is cheap. This talk will challenge that belief by looking at what happens outside of the fast path and considering the impact of even fast path allocation on other parts of the system, such as caches and memory bandwidth.

You will see how optimizations from the JIT can reduce or eliminate many allocations but how reasoning about when these happen can be almost impossible from glancing at code. Examples will introduce you to common problems and tooling you can use to understand the allocation behavior of your code.

From attending this talk you will understand:

– How allocation works in modern JVM Garbage Collectors

– Why allocation isn’t necessarily as cheap as it seems

– Why the JVM makes it difficult to reason about allocation behavior by code examination

– What kind of tooling you can use to understand the real allocation behavior of your code

This Session belongs to the Diese Session gehört zum Programm vom JAXJAX program. Take me to the program of . Hier geht es zum Programm von W-JAX W-JAX .

Take me to the full program of Zum vollständigen Programm von JAX JAX .

This Session Diese Session belongs to the gehört zum Programm von JAXJAX program. Take me to the current program of . Hier geht es zum aktuellen Programm von W-JAX W-JAX or oder JAX JAX .
Alle News der Java-Welt:
Alle News der Java-Welt:

Behind the Tracks

Agile & Culture
Teamwork & Methoden

Data Access & Machine Learning
Speicherung, Processing & mehr

Clouds, Kubernets & Serverless
Alles rund um Cloud

Core Java & JVM Languages
Ausblicke & Best Practices

DevOps & Continuous Delivery
Deployment, Docker & mehr

Strukturen & Frameworks

Web Development & JavaScript
JS & Webtechnologien

Performance & Security
Sichere Webanwendungen

Serverside Java
Spring, JDK & mehr

Digital Transformation & Innovation
Technologien & Vorgehensweisen

Best Practices

Domain-driven Design
Grundlagen und Ausblick

Spring Ecosystem
Wissen in Spring-Technologien

API-Technologie, Design und Management