android-parallax-recyclerview icon indicating copy to clipboard operation
android-parallax-recyclerview copied to clipboard

Memory Growing Issue

Open KingWu opened this issue 9 years ago • 5 comments

just install sample project. Run on an emulator. Open Memory Monitor. Scroll up and down with several times. Memory is growing. Sometimes GC start, but cannot release more memory. Always call GC.

Any idea on this issue?

Thanks

KingWu avatar Aug 05 '15 09:08 KingWu

Memory growing could be numerous things. However it's expected to lower when GC is called. Could you share a heap dump so I can analyze what's causing the memory clog?

kanytu avatar Aug 05 '15 10:08 kanytu

you cannot reproduce?

KingWu avatar Aug 05 '15 14:08 KingWu

Just checked with the example project. The memory is growing but if you force GC it will come back to normal

kanytu avatar Aug 05 '15 14:08 kanytu

i try it on emulator. Sometimes after GC, the UI is freeze.

KingWu avatar Aug 05 '15 15:08 KingWu

The UI is supposed to freeze on a GC call since it runs on the UI thread. I think you should try it on a real device instead. Emulators are not good examples to test performance

kanytu avatar Aug 05 '15 16:08 kanytu