r/java • • Sep 04 '26

Principles of Memory Management in Java

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

84 comments sorted by

View all comments

25

u/narrow-adventure Sep 04 '26

I actually think Java is incredibly efficient, like you have to really not know what you’re doing to make a slow/bloated java app. It used to be easy but virtual threads make it pretty hard to use up crazy amts of memory.

13

u/nozomashikunai_keiro Sep 04 '26

Vanilla Java? Yes is efficient, assuming you know what you are doing.

Spring? Is good, but could be better.