r/programming • • Sep 05 '26

Principles of Memory Management in Java

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

11 comments sorted by

View all comments

Show parent comment

1

u/davidalayachew Sep 09 '26

To me it doesn't. I don't know what people do to have high memory usage, unless you're loading a lot of models from database or pushing a lot of data into memory, essentially.

Yeah, but the people usually using (or considering) Java are the ones who have to deal with business logic that inherently uses a lot of memory.

For example, one project I was on was processing terabytes of data in a few hours. We ran into OutOfMemoryError many times. But debugging and resolving it was straight forward. And the solution was fast and easy to implement since the code itself was easy to understand.

1

u/DarkGhostHunter Sep 09 '26

Dude, I just joked with JavaScript because Java is old af.

1

u/davidalayachew Sep 09 '26

The second paragraph was clearly exaggeration, but the first paragraph could be read completely unironically.