컴퓨터공부/Kotlin & Java

JVM에서 메모리 릭 정의

achivenKakao 2020. 10. 17. 17:14

정의

    : abandoned objects but still accessible(버려진 오브젝트지만 접근이 가능한 경우)


메모리 릭이 자주 발생하는 코드(아래 영상에서 발취함)
    Static variables
    Singleton classes that are holding onto your calss
    Registering yourself with a listener, but forgetting to remove it
    Any of these inner classes that for some reason may not end up stopping

 

 

발취 영상 : 

     Deep Dive into Android Studio Profilers (Android Dev Summit '18)

         https://youtu.be/LGVbpobV-Yg