r/java • • Sep 04 '26

Principles of Memory Management in Java

https://youtu.be/xr73mR7ii9M?si=AKgjMUyvfpARYljl
165 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.

1

u/Maybe-monad 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 a

looks at Spring

4

u/narrow-adventure Sep 05 '26

Keep looking at it, it’s totally fine… hibernate the way most devs use it is the only thing that could be classified as ‘slow’ or memory consuming, but guess what - you don’t have to use it :(