World Congress 2026 Europe

Swapping Code, Losing Memory: A JVM Deep Dive

July 10, 2026 15:00 – 15:30 · 30 min Stage 8 - powered by Red Hat

What this session covers

You’ve probably seen the option to hot swap code while debugging in your IDE, but have you ever wondered how it actually works under the hood? And more importantly, what could go wrong? While stress testing an application that made heavy use of class reloading, I discovered a surprising issue: we were leaking memory and not just heap memory. This kicked off a deep dive into the internals of the JVM to understand what really happens when a class is reloaded. In this talk, I’ll explain how I investigated the problem, what I learned about class representation in the JVM, and how code hot swapping really works in OpenJDK. You’ll leave with practical insights into debugging class reloading issues and a better understanding of what’s happening behind the scenes when your code changes on the fly.

World Congress 2026 Europe

Related talks

Open session

How does a Java agent work? Building a Java agent from scratch.

  • Marco Sussitz

    Dynatrace

    Senior Software Developer

Open session

Go with the Flow: Stop the Leaks Before Your Memory's a Waterfall!

  • Manfred Bjørlin

    Sopra Steria

    Principal Cloud Native Architect

Open session

Java Sucks (So C# Didn't Have To)

  • Adele Carpenter

    Trifork Amsterdam

    Software Engineer

Open session

Native Speed, Java Comfort: Calling Rust from the JVM with Project Panama

  • Gonzalo Ortiz Jaureguizar

    Startree

    Performance Engineer

All sessions at this congress