What are Memory Leaks in JVM #Java

First of all Memory leak is not sweeping Unused objects, It is Sweeping referenced objects. Check the clear definition here 


Memory leak ::is  a common memory problem that also leads to OutOfMemory error. 

In Java ,  memory leaks can not happen as  it has automatic Garbage Collection (GC). 

GC  removes  unused objects that are not referenced anymore. But if an object is not used, but is still referenced, GC does not remove it, which leads to memory leaks in JVM .

Comments

Popular posts from this blog

Permissions are too open // #AWS keypair issue - Windows

5 tips for Python Beginners

#Kubernetes Cluster Initialization iptables error #K8s