News for hackers. Stuff that matters.
Re:Three kinds of memory leaks by merb on Monday April 30, 2018 @06:03PM (#16962836)
the JVM _NEVER_ returns memory to the os. but that is not a problem since memory can always be reused on the jvm.

I wouldn't consider the third category a memory leak.

Re:Three kinds of memory leaks by cryptonector on Monday April 30, 2018 @06:28PM (#16963038)
A cynic might say that it's not a problem because if you're running the JVM then that's probably all you're running...
Re:Three kinds of memory leaks by gowld on Monday April 30, 2018 @07:43PM (#16963493)
JVM has -Xmx for choosing how much memory you want it to use.
Re:Three kinds of memory leaks by ShroudedNight on Monday April 30, 2018 @09:48PM (#16964056)
>the JVM _NEVER_ returns memory to the os

That may (or may not) be true of the GC heap, but the GC heap is only one consumer of JVM memory allocations. I don't know enough to confirm one way or another.

Speaking from experience, OpenJ9's JIT compiler aggressively returns transient compilation memory back to the operating system.

Re:Three kinds of memory leaks by gowld on Monday April 30, 2018 @07:42PM (#16963488)
Your Java program can have category 3 leak "inside* the JVM.