回覆:Re: [android-developers] Re: Strangely !! The RAM usage of my APK over 20MB
Hi, Sir: Thanks for your notice. I'll try to use MAT to find out the cause. Leon. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Strangely !! The RAM usage of my APK over 20MB
You could try to use some memory analyzer tool. I use MAT for my project: http://www.eclipse.org/mat/ Search for google how can you use it with android but here is a good start: http://biowallet.blogspot.com/2009/04/analyze-android-15-memory-dump.html On 5 May 2011 14:07, Adam Ratana wrote: > Use DDMS and profile your allocations in eclipse. Are you creating > new instances in an ondraw method, etc. see the developer docs on > performance. > > On May 4, 10:33 am, Leon Worker wrote: > > Dear Senior Developers : > >I'm a junior Android developer. And i caorn't understand where the > > problem is. As my Message Title said, i can't convince my Project > > Manager the RAM usage is so high sometimes. > > > > Here is my Steps and Situation for your reference. > > > > Situation : My APK have 4 Activities and 1 Service. And I will check > > my APK status through the function of "Setting". > > > > Step 1 : From "Setting" --> "Application" --> "Running Service". > > Step 2 : Find my APK Name, and you can see the RAM Usage and Service > > running-time. Normally, my APK will cause about 3 to 5 MB RAM. But i > > find the RAM Usage will become to 20MB sometimes. > > > > So i don't know how to tune my APK or how to avoid the Memory Leak > > issue. Please kindly to give me any suggestions. Many Thanks. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Strangely !! The RAM usage of my APK over 20MB
Use DDMS and profile your allocations in eclipse. Are you creating new instances in an ondraw method, etc. see the developer docs on performance. On May 4, 10:33 am, Leon Worker wrote: > Dear Senior Developers : > I'm a junior Android developer. And i caorn't understand where the > problem is. As my Message Title said, i can't convince my Project > Manager the RAM usage is so high sometimes. > > Here is my Steps and Situation for your reference. > > Situation : My APK have 4 Activities and 1 Service. And I will check > my APK status through the function of "Setting". > > Step 1 : From "Setting" --> "Application" --> "Running Service". > Step 2 : Find my APK Name, and you can see the RAM Usage and Service > running-time. Normally, my APK will cause about 3 to 5 MB RAM. But i > find the RAM Usage will become to 20MB sometimes. > > So i don't know how to tune my APK or how to avoid the Memory Leak > issue. Please kindly to give me any suggestions. Many Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Strangely !! The RAM usage of my APK over 20MB
which objects would consume that RAM? Large images? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en