logoalt Hacker News

xxsyesterday at 7:50 PM1 replyview on HN

What do you mean - if Java returns memory to the OS? Which one - Java heap of the malloc/free by the JVM?


Replies

cogman10yesterday at 8:01 PM

Java is pretty greedy with the memory it claims. Especially historically it was pretty hard to get the JVM to release memory back to the OS.

To an outsider, that looks like the JVM heap just steadily growing, which is easy to mistake for a memory leak.

show 3 replies