memory - Android MAT: activities being held by java.lang.ref.FinalizerReference -
i'm trying track down unexpectedly high memory usage. i've reduced complexity of app , have main activity button. pressing buttons starts new activity videoview plays video. when video finishes playing or it's dismissed close button, activity stopped , user returned main activity.
now strangeness (well strange me). when app first launches sits @ 20mb memory usage. each time video activity started, closed , returned memory usage increases ~6mb. not leak continue increase 50mb or drop down ~30mb. grow , drop between 50mb , 30mb.
i made dump mat , in histogram view saw there multiple video activities still around when expecting none or @ worse one. on subsequent dumps looks number of instances bounces between 1-5 (corresponding low , high mem values).
i'm not sure next! i'm new mat , don't know how use track down whats happening. when merge_shortest_path excluding weak references points class java.lang.ref.finalizerreference 1 holding memory. googled around , checked none of code overrides finalize methods.
so normal or have clue why video activities not being cleared right away when they're done.
any pointers appreciated.
kk
Comments
Post a Comment