Tagged articles

Resource Leak

4 articles · Page 1 of 1
Java Captain
Java Captain
Sep 23, 2026 · Fundamentals

5 Common Java Memory Leak Scenarios and How to Detect Them

This article explains five common Java memory leak scenarios—long-lived collections, unclosed resources, ThreadLocal misuse, inner class references, and unregistered listeners—with code examples and recommends MAT and VisualVM for leak detection.

Garbage CollectionInner ClassJava
0 likes · 5 min read
5 Common Java Memory Leak Scenarios and How to Detect Them
FunTester
FunTester
Aug 8, 2025 · Backend Development

How FixrLeak Uses Generative AI to Automatically Fix Java Resource Leaks

FixrLeak combines AST analysis with generative AI to detect and automatically repair Java resource leaks, dramatically reducing manual effort, improving code quality, and demonstrating the transformative potential of AI‑driven solutions in large‑scale software engineering.

ASTCode RepairJava
0 likes · 9 min read
How FixrLeak Uses Generative AI to Automatically Fix Java Resource Leaks
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 20, 2024 · Backend Development

How to Fix Resource Leaks When Streaming Files in SpringBoot 3.2

This article explains why using a wrong Content‑Type header and not closing the InputStream when returning a Resource in SpringBoot 3.2 causes file‑handle leaks, and demonstrates three solutions—including try‑with‑resources, direct HttpServletResponse streaming, and custom Resource implementations—to safely download files even under high concurrency.

File DownloadResource LeakResponseEntity
0 likes · 7 min read
How to Fix Resource Leaks When Streaming Files in SpringBoot 3.2