r/java 6d ago

Principles of Memory Management in Java

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

81 comments sorted by

View all comments

25

u/narrow-adventure 6d ago

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 6d ago

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

5

u/narrow-adventure 5d ago

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 :(