Saturday, April 27, 2013

Garbage collection messages

The structure of the garbage collection is the following:


04-27 10:39:28.982   387   397 D dalvikvm: GC_EXPLICIT freed 89K, 17% free 15805K/19020K, paused 2ms+5ms, total 63ms


04-27 10:39:25.959  3060  3064 D dalvikvm: GC_CONCURRENT freed 384K, 6% free 8818K/9300K, paused 2ms+2ms, total 22ms



Reason:
  • GC_CONCURRENT
  • GC_FOR_MALLOC - full heap, stop app to collect to increase the loc 
  • GC_EXTERNAL_ALLOC
  • GC_HPROF_DUMP_HEAP - for profiling
  • GC_EXPLICIT - when called System.gc()
Memory statistics about the garbage collection:
  • number of bytes freed
  • amount of free memory after garbage collection
  • number of objects that are alive / total heap size
Pause times:
  • pauses at start/end of the garbage collection process

No comments:

Post a Comment