If you don't have a debugger attached (I'm not sure how that might
change the behavior), this most likely means your application is
creating lots of temporary objects: almost 15,000 every 7 seconds.
I'm not aware of any bugs in the system that could cause an
application process to start doing this without being due to the
application itself, though of course there may be something.

Note that in Java it is really really easy to churn through lots of
temporary objects, especially with autoboxing and such; this is one of
the things you need to be careful about when programming for a mobile
device.

On Mar 25, 2:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> While our application is basically doing nothing the garbage collector
> is very busy:
>
> INFO/dalvikvm-heap(515): GC! (7789ms since last GC)
> INFO/dalvikvm-heap(515): GC old usage 58.3%; now 2.800MB used /
> 4.800MB soft max (5.252MB real max)
> INFO/dalvikvm-heap(515): GC freed 14928 objects / 2095000 bytes in
> 231ms
> INFO/dalvikvm-heap(515): GC! (7509ms since last GC)
> INFO/dalvikvm-heap(515): GC old usage 58.1%; now 2.790MB used /
> 4.790MB soft max (5.252MB real max)
> INFO/dalvikvm-heap(515): GC freed 14883 objects / 2100932 bytes in
> 193ms
> INFO/dalvikvm-heap(515): GC! (7496ms since last GC)
> INFO/dalvikvm-heap(515): GC old usage 58.4%; now 2.799MB used /
> 4.799MB soft max (5.252MB real max)
> INFO/dalvikvm-heap(515): GC freed 14741 objects / 2086380 bytes in
> 236ms
> INFO/dalvikvm-heap(515): GC! (7887ms since last GC)
> INFO/dalvikvm-heap(515): GC old usage 58.3%; now 2.799MB used /
> 4.799MB soft max (5.252MB real max)
> INFO/dalvikvm-heap(515): GC freed 14899 objects / 2093612 bytes in
> 199ms
> INFO/dalvikvm-heap(515): GC! (7444ms since last GC)
> INFO/dalvikvm-heap(515): GC old usage 58.3%; now 2.799MB used /
> 4.799MB soft max (5.252MB real max)
> INFO/dalvikvm-heap(515): GC freed 14784 objects / 2096544 bytes in
> 204ms
>
> As you can see every few seconds the GC is called and is using a
> decent fraction of a second to complete his task. Is this normal
> behaviour in the simulator, or is something going wrong?
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to