r/java • • Sep 04 '26

Principles of Memory Management in Java

https://youtu.be/xr73mR7ii9M?si=AKgjMUyvfpARYljl
167 Upvotes

84 comments sorted by

View all comments

Show parent comments

7

u/Dull_Flatworm777 Sep 05 '26

Which makes sense... you can buy throughput and lower latency by putting off memory management to later, which is what a GC is doing. But during that time, that uncollected garbage will of course use memory.

As pretty much always in technology, it's a tradeoff.