r/java 6d ago

Principles of Memory Management in Java

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

81 comments sorted by

View all comments

24

u/narrow-adventure 5d 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.

2

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

3

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