<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-trace-a-java-memory-leak-by-victor-rentea-qy2wdbu4a" -->

---
title: How to trace a Java Memory Leak by Victor Rentea | daily.dev
description: A live-coding conference talk covering multiple Java memory leak patterns and how to diagnose them. Topics include: configuring JVM flags to capture heap dumps...
canonical: https://daily.dev/posts/how-to-trace-a-java-memory-leak-by-victor-rentea-qy2wdbu4a
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to trace a Java Memory Leak by Victor Rentea | daily.dev
og:description: A live-coding conference talk covering multiple Java memory leak patterns and how to diagnose them. Topics include: configuring JVM flags to capture heap dumps...
og:url: https://daily.dev/posts/how-to-trace-a-java-memory-leak-by-victor-rentea-qy2wdbu4a
og:image: https://api.daily.dev/og/posts/QY2wdbu4a.png
og:image:alt: How to trace a Java Memory Leak by Victor Rentea
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to trace a Java Memory Leak by Victor Rentea

**[Devoxx](https://daily.dev/sources/devoxx)** · 93 min read · 0 upvotes · 0 comments

## Summary

A live-coding conference talk covering multiple Java memory leak patterns and how to diagnose them. Topics include: configuring JVM flags to capture heap dumps on OOM, using VisualVM/IntelliJ/MAT for heap analysis, shallow vs retained size, high-cardinality Micrometer metrics causing leaks, Hibernate first-level cache accumulation during streaming queries, DIY caches without eviction, broken cache keys due to missing equals/hashCode or mutable keys, inner class hidden references, ThreadLocal leaks in thread pools, BigDecimal parsing of UUID-like strings causing OOM, ArrayList.subList() memory retention, and unbounded CompletableFuture queues. Practical fixes include entity detach, Caffeine cache, try-finally ThreadLocal cleanup, and back-pressure strategies.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=8lswtL1wqxk>

## Similar posts on daily.dev

- [Battling memory leaks](https://daily.dev/posts/battling-memory-leaks-wwefm6qlz) · Erlang Forums · 0 upvotes · 0 comments
- [Stop Guessing Why Your Pods Are Crashing](https://daily.dev/posts/stop-guessing-why-your-pods-are-crashing-disrbycve) · Coralogix · 3 upvotes · 1 comments

---

Tags: [#java](https://daily.dev/tags/java), [#jvm](https://daily.dev/tags/jvm)

[View this post on daily.dev](https://daily.dev/posts/how-to-trace-a-java-memory-leak-by-victor-rentea-qy2wdbu4a)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to trace a Java Memory Leak by Victor Rentea","url":"https://daily.dev/posts/how-to-trace-a-java-memory-leak-by-victor-rentea-qy2wdbu4a","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-trace-a-java-memory-leak-by-victor-rentea-qy2wdbu4a"},"datePublished":"2026-04-08T19:58:42.383Z","dateModified":"2026-04-08T19:59:07.212Z","description":"A live-coding conference talk covering multiple Java memory leak patterns and how to diagnose them. Topics include: configuring JVM flags to capture heap dumps...","image":"https://i.ytimg.com/vi/8lswtL1wqxk/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/8lswtL1wqxk/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Devoxx","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Devoxx","logo":"https://media.daily.dev/image/upload/s--6vG797wn--/f_auto,q_auto/v1773648800/logos/devoxx?_a=BAMAMiiu0","url":"https://daily.dev/sources/devoxx"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-trace-a-java-memory-leak-by-victor-rentea-qy2wdbu4a","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,jvm","timeRequired":"PT93M","video":{"@type":"VideoObject","name":"How to trace a Java Memory Leak by Victor Rentea","description":"A live-coding conference talk covering multiple Java memory leak patterns and how to diagnose them. Topics include: configuring JVM flags to capture heap dumps...","thumbnailUrl":"https://i.ytimg.com/vi/8lswtL1wqxk/sddefault.jpg","uploadDate":"2026-04-08T19:58:42.383Z","duration":"PT93M","url":"https://api.daily.dev/r/QY2wdbu4a","embedUrl":"https://www.youtube.com/embed/8lswtL1wqxk"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Devoxx","item":"https://daily.dev/sources/devoxx"},{"@type":"ListItem","position":3,"name":"How to trace a Java Memory Leak by Victor Rentea"}]}
```

