You can use "adb shell dumpsys memoryinfo" to see more details information
about app memory usage.

Note that Running Services (especially starting with Gingerbread) is showing
the aggregate of your process and any processes you are causing to keep
around.  Look at the details to see if there are other processes involved,
and it should say why they are needed.

Or it could just be that you have allocations elsewhere -- for example I
think DDMS only shows the Java heap in its main view.  If you have a lot of
native allocations (bitmaps, web view, etc) then they may not show up there.

On Sun, Jan 23, 2011 at 12:16 PM, Joan Pujol <[email protected]> wrote:

> I've seen that my background service is allocating 25Mbs according to
> the Running Services android window. As it is a lot of memory that I
> think I don't use I looked to ddms and also made a head dump of my
> process and then the memory usage is only 2.9Mb
>
> What's is the real memory usage? If it is the ddms one is there any
> way to let running services give the correct usage? Because I'm afraid
> that if some user look at the running services it will say that the
> application is wasting a lot of memory.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to