Memory leaks in Java

START EXPLORING

www.techbiason.com

It occurs when the objects of the code are no longer being used by the application and the garbage collector is also not able to remove that object

What is Memory Leaks in JavA

www.techbiason.com

Memory leaks through statistics filed
Through unclose resources
Improper equals() and hashCode() Implenmations

TYPES OF MEMORY LEAKS IN JAVA

www.techbiason.com

Inner classes that reference outer classes
Through finalize methods
Interned strings
Using ThreadLocals

TYPES OF MEMORY LEAKS IN JAVA?

www.techbiason.com

Enabling Profiling
Verbose garbage collection
Eclispe memory leak warning
Benchmarking
Use reference objects

Dealing With Memory Leaks

www.techbiason.com

Watch out for more Daily Web Stories

www.techbiason.com