Framedrops --> Ideas for better Android Game rendering? - android

my simple application suffers from framedrop. I think this is due to my rendering method:
public void draw(Canvas canvas) {
drawBackground(canvas);
drawPlayer(canvas);
drawEnemy(canvas);
}
As you can see, the background gets drawn every single time this method is called, as well as player and enemy... the "drawBackground(canvas)" looks kinda like this:
public void paintBackground(Canvas canvas) {
canvas.drawBitmap(background, 0, 0, null);
}
drawPlayer and drawEnemy draw circles at the position my player/ or enemyobject returns.
Is there any better solution for displaying background, player and other objects, without constantly redrawing them?
Logcat:
02-14 17:30:11.904: D/dalvikvm(17783): GC_FOR_ALLOC freed 29K, 1% free 9069K/9132K, paused 17ms, total 18ms
02-14 17:30:11.912: I/dalvikvm-heap(17783): Grow heap (frag case) to 12.404MB for 3686416-byte allocation
02-14 17:30:11.927: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 1% free 12669K/12736K, paused 20ms, total 20ms
02-14 17:30:12.341: D/dalvikvm(17783): GC_FOR_ALLOC freed 16K, 1% free 12696K/12748K, paused 24ms, total 24ms
02-14 17:30:12.349: I/dalvikvm-heap(17783): Grow heap (frag case) to 15.945MB for 3686416-byte allocation
02-14 17:30:12.373: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 1% free 16296K/16352K, paused 24ms, total 24ms
02-14 17:30:12.560: D/OpenGLRenderer(17783): Enabling debug mode 0
02-14 17:30:18.045: D/dalvikvm(17783): GC_FOR_ALLOC freed 218K, 2% free 16377K/16632K, paused 20ms, total 20ms
02-14 17:30:18.052: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.541MB for 3686416-byte allocation
02-14 17:30:18.076: D/dalvikvm(17783): GC_FOR_ALLOC freed 6K, 2% free 19971K/20236K, paused 21ms, total 22ms
02-14 17:30:28.529: D/dalvikvm(17783): GC_FOR_ALLOC freed 3899K, 20% free 16395K/20332K, paused 19ms, total 19ms
02-14 17:30:28.537: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.557MB for 3686416-byte allocation
02-14 17:30:28.560: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 2% free 19995K/20332K, paused 18ms, total 18ms
02-14 17:30:49.756: D/dalvikvm(17783): GC_FOR_ALLOC freed 4050K, 20% free 16464K/20552K, paused 20ms, total 34ms
02-14 17:30:49.763: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.625MB for 3686416-byte allocation
02-14 17:30:49.779: D/dalvikvm(17783): GC_FOR_ALLOC freed 6K, 3% free 20057K/20552K, paused 21ms, total 21ms
02-14 17:30:57.107: D/dalvikvm(17783): GC_FOR_ALLOC freed 3938K, 21% free 16373K/20552K, paused 17ms, total 17ms
02-14 17:30:57.107: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.536MB for 3686416-byte allocation
02-14 17:30:57.138: D/dalvikvm(17783): GC_FOR_ALLOC freed 14K, 3% free 19958K/20552K, paused 13ms, total 13ms
02-14 17:31:03.310: D/dalvikvm(17783): GC_FOR_ALLOC freed 3824K, 21% free 16370K/20552K, paused 31ms, total 31ms
02-14 17:31:03.310: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.533MB for 3686416-byte allocation
02-14 17:31:03.381: D/dalvikvm(17783): GC_FOR_ALLOC freed 7K, 3% free 19962K/20552K, paused 30ms, total 30ms
02-14 17:33:31.943: D/dalvikvm(17783): GC_FOR_ALLOC freed 6253K, 27% free 17352K/23640K, paused 37ms, total 39ms
Thanks in advance

Related

My Application freezes

I am developing an android application for fingerprint reader, my operations include verifying user fingerprint(continuously), and registering new fingerprints(getting fingerprints from web API).
I am using Morpho MSO 1300 fingerprint reader.
when I run my application I am constantly getting following logcat messages
01-02 11:19:48.910 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:49.350 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:49.770 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:50.210 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:50.630 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:51.070 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:51.570 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:52.070 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:52.570 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:53.000 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:53.500 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:53.930 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:54.360 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:54.800 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms
01-02 11:19:55.300 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 336K, 20% free 3652K/4540K, paused 14ms, total 14ms
01-02 11:19:55.730 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 301K, 20% free 3644K/4540K, paused 14ms, total 14ms
01-02 11:19:56.150 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3644K/4540K, paused 15ms, total 15ms
01-02 11:19:56.600 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms
01-02 11:19:57.010 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms
01-02 11:19:57.440 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 295K, 20% free 3644K/4540K, paused 14ms, total 14ms
01-02 11:19:57.880 5286-11417/com.cms.attendance D/dalvikvm:
GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms
01-02 11:19:58.030 24732-24776/com.baidu.video.pad:download V/P2PBase:
[11:19:58:040][P2PBase] dns : media.p2sp.baidu.com resolve failed.
wait 3
As I increase data in my application, say I get 1000 users from web API and I try to process them and register them in fingerprint reader and sqlite database eventually my application freezes.
Any help will be appreciated.
This log means that Garbage collector just released the memory. You are making a lot of allocations and this is the reason why GC have to work frequently.
I recommend You to use Android Profiler (Android Studio 3.0) and try to overcome this problem: https://developer.android.com/studio/profile/memory-profiler.html
or past your code so that we can think about it together.

Android app: how can I use up memory, leaving only 20-100 MB

I'm working on a stress testing tool, one of designed scenario is to use up memory, and leave only a few mega for the app under test and others.
By searching internet about this topic, I learned that Android Dalvik vm limit program allocation in 16MB, 24MB, or 32MB. But I do realized some app can retain up to 80 MB memory. So is that idea reasonable? if so, how to achieve that goal.
thanks in advance,
Forrest
I would use one or several services to consume memory.
This article tells us that Leaving a service running when it’s not needed is one of the worst memory-management mistakes:
https://developer.android.com/training/articles/memory.html#Services
and this one tells us which process is killed last:
http://developer.android.com/guide/components/processes-and-threads.html#Lifecycle
In addition, I would use a foreground activity to cause killing the app under test (and see if the data survive): when the memory is already allocated to services, a foreground activity would cause killing of the background activities.
Android is a Linux, so you can use stuff like /proc/$PID/maps (see here).
It's interesting to know what you will use, so please answer your own question after you solve the problem.
thanks following up with me. Now I believe I get an answer to this question.
Generally speaking, we cannot rely on one app/service to use up the whole system RAM. Andoid app runs in Dalvik vm and there's an upper limit for each application or service. It's also known as maximum heap size limit. Different phones has different limit heap size:
HUAWEI U9508: 256MB android 4.0.4
Meizu MX3: 192MB android 4.2.1* ll
We can get this heap size by code:
Runtime.getRuntime().maxMemory();
Android Service fall into this rule as well, the heap size limit is the same as normal app.
Initially, android os give the app a relatively small heap, when the app reach the capacity, memory manager will grow the heap size automatically. Later, if app reaches the heap size limit, you'll get OutOfMemoryError. See below log(copy to text editor for better reading):
02-15 09:22:25.438: D/dalvikvm(9992): GC_FOR_ALLOC freed 140K, 11% free 2943K/3280K, paused 11ms, total 11ms
02-15 09:22:25.478: I/dalvikvm-heap(9992): Grow heap (frag case) to 27.059MB for 25165840-byte allocation
02-15 09:22:25.478: D/dalvikvm(9992): threadid=1: still suspended after undo (sc=1 dc=1)
02-15 09:22:25.488: D/dalvikvm(9992): threadid=1: still suspended after undo (sc=1 dc=1)
02-15 09:22:25.488: D/dalvikvm(9992): GC_CONCURRENT freed 15K, 2% free 27504K/27860K, paused 1ms+2ms, total 13ms
02-15 09:22:25.488: D/dalvikvm(9992): WAIT_FOR_CONCURRENT_GC blocked 12ms
02-15 09:22:43.758: I/Choreographer(9992): Skipped 1100 frames! The application may be doing too much work on its main thread.
02-15 09:22:43.913: D/dalvikvm(9992): GC_FOR_ALLOC freed 2K, 2% free 27504K/27856K, paused 25ms, total 25ms
02-15 09:22:43.963: I/dalvikvm-heap(9992): Grow heap (frag case) to 51.044MB for 25165840-byte allocation
02-15 09:22:43.978: D/dalvikvm(9992): GC_FOR_ALLOC freed <1K, 1% free 52080K/52436K, paused 14ms, total 14ms
02-15 09:22:43.998: D/dalvikvm(9992): GC_CONCURRENT freed <1K, 1% free 52080K/52436K, paused 2ms+4ms, total 21ms
02-15 09:22:52.578: D/dalvikvm(9992): GC_FOR_ALLOC freed 4K, 1% free 52080K/52432K, paused 12ms, total 12ms
02-15 09:22:52.613: I/dalvikvm-heap(9992): Grow heap (frag case) to 75.044MB for 25165840-byte allocation
02-15 09:22:52.633: D/dalvikvm(9992): GC_CONCURRENT freed 0K, 1% free 76656K/77012K, paused 3ms+4ms, total 20ms
02-15 09:22:52.633: D/dalvikvm(9992): WAIT_FOR_CONCURRENT_GC blocked 17ms
02-15 09:22:52.633: D/dalvikvm(9992): WAIT_FOR_CONCURRENT_GC blocked 17ms
02-15 09:22:55.198: D/dalvikvm(9992): GC_FOR_ALLOC freed 1K, 1% free 76656K/77012K, paused 13ms, total 13ms
02-15 09:22:55.233: I/dalvikvm-heap(9992): Grow heap (frag case) to 99.044MB for 25165840-byte allocation
02-15 09:22:55.253: D/dalvikvm(9992): GC_CONCURRENT freed 0K, 1% free 101232K/101592K, paused 1ms+5ms, total 17ms
02-15 09:22:55.253: D/dalvikvm(9992): WAIT_FOR_CONCURRENT_GC blocked 17ms
02-15 09:22:55.253: D/dalvikvm(9992): WAIT_FOR_CONCURRENT_GC blocked 17ms
02-15 09:22:56.438: D/dalvikvm(9992): GC_FOR_ALLOC freed <1K, 1% free 101232K/101592K, paused 17ms, total 17ms
02-15 09:22:56.478: I/dalvikvm-heap(9992): Grow heap (frag case) to 123.044MB for 25165840-byte allocation
02-15 09:22:56.493: D/dalvikvm(9992): GC_FOR_ALLOC freed 0K, 1% free 125808K/126172K, paused 18ms, total 18ms
02-15 09:22:56.523: D/dalvikvm(9992): GC_CONCURRENT freed <1K, 1% free 125808K/126172K, paused 2ms+7ms, total 27ms
02-15 09:22:57.458: D/dalvikvm(9992): GC_FOR_ALLOC freed <1K, 1% free 125808K/126172K, paused 17ms, total 18ms
02-15 09:22:57.493: I/dalvikvm-heap(9992): Grow heap (frag case) to 147.044MB for 25165840-byte allocation
02-15 09:22:57.513: D/dalvikvm(9992): GC_FOR_ALLOC freed 0K, 1% free 150384K/150752K, paused 18ms, total 18ms
02-15 09:22:57.543: D/dalvikvm(9992): GC_CONCURRENT freed <1K, 1% free 150384K/150752K, paused 3ms+7ms, total 29ms
02-15 09:22:58.668: D/dalvikvm(9992): GC_FOR_ALLOC freed <1K, 1% free 150384K/150752K, paused 17ms, total 17ms
02-15 09:22:58.708: I/dalvikvm-heap(9992): Grow heap (frag case) to 171.044MB for 25165840-byte allocation
02-15 09:22:58.733: D/dalvikvm(9992): GC_FOR_ALLOC freed 0K, 1% free 174960K/175332K, paused 24ms, total 24ms
02-15 09:22:58.768: D/dalvikvm(9992): GC_CONCURRENT freed <1K, 1% free 174960K/175332K, paused 2ms+11ms, total 36ms
02-15 09:22:59.718: D/dalvikvm(9992): GC_FOR_ALLOC freed <1K, 1% free 174960K/175332K, paused 35ms, total 35ms
02-15 09:22:59.718: I/dalvikvm-heap(9992): Forcing collection of SoftReferences for 25165840-byte allocation
02-15 09:22:59.778: D/dalvikvm(9992): GC_BEFORE_OOM freed 10K, 1% free 174950K/175332K, paused 58ms, total 58ms
02-15 09:22:59.778: E/dalvikvm-heap(9992): Out of memory on a 25165840-byte allocation.
02-15 09:22:59.778: I/dalvikvm(9992): "main" prio=5 tid=1 RUNNABLE
02-15 09:22:59.778: I/dalvikvm(9992): | group="main" sCount=0 dsCount=0 obj=0x40dd19a0 self=0x40bc6010
02-15 09:22:59.778: I/dalvikvm(9992): | sysTid=9992 nice=0 sched=0/0 cgrp=apps handle=1074504668
02-15 09:22:59.778: I/dalvikvm(9992): | state=R schedstat=( 0 0 0 ) utm=295 stm=49 core=0
02-15 09:22:59.778: I/dalvikvm(9992): at com.jdmobile.stresstestingutility.MainActivity$2.onClick(MainActivity.java:~148)
02-15 09:22:59.778: I/dalvikvm(9992): at android.view.View.performClick(View.java:4203)
02-15 09:22:59.778: I/dalvikvm(9992): at android.view.View$PerformClick.run(View.java:17556)
02-15 09:22:59.778: I/dalvikvm(9992): at android.os.Handler.handleCallback(Handler.java:725)
02-15 09:22:59.778: I/dalvikvm(9992): at android.os.Handler.dispatchMessage(Handler.java:92)
02-15 09:22:59.778: I/dalvikvm(9992): at android.os.Looper.loop(Looper.java:137)
02-15 09:22:59.778: I/dalvikvm(9992): at android.app.ActivityThread.main(ActivityThread.java:5105)
02-15 09:22:59.778: I/dalvikvm(9992): at java.lang.reflect.Method.invokeNative(Native Method)
02-15 09:22:59.778: I/dalvikvm(9992): at java.lang.reflect.Method.invoke(Method.java:511)
02-15 09:22:59.778: I/dalvikvm(9992): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
02-15 09:22:59.778: I/dalvikvm(9992): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
02-15 09:22:59.778: I/dalvikvm(9992): at dalvik.system.NativeStart.main(Native Method)
02-15 09:23:52.643: D/AndroidRuntime(9992): Shutting down VM
The other memory allocation limit is a chunk of memory(no fragment): 16MB, 24MB, or bigger, see this piece of code demonstration, ActivityManager:
/**
* Return the approximate per-application memory class of the current
* device. This gives you an idea of how hard a memory limit you should
* impose on your application to let the overall system work best. The
* returned value is in megabytes; the baseline Android memory class is
* 16 (which happens to be the Java heap limit of those devices); some
* device with more memory may return 24 or even higher numbers.
*/
public int getMemoryClass() {
return staticGetMemoryClass();
}

Too many GC_FOR_ALLOC in logcat

while running logcat on my app's logs, I see lots of GC_FOR_ALLOCs and no GC_CONCURRENT messages. I know I have memory leak, but everywhere in stack and other sites, logcat messages has lots of GC_CONCURRENT messages, and few GC_FOR_ALLOC messages. I wanna know what am I doing wrong? Do I have any special case of memory leak in my app? what's the problem?
BTW: I know Eclipse MAT and I'm trying to fix memory leak using MAT. I just don't know why GC_FOR_ALLOC is called so frequent.
logcat:
D/dalvikvm(18068): GC_FOR_ALLOC freed 3974K, 8% free 54640K/58964K, paused 42ms, total 42ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 473K, 8% free 54622K/58964K, paused 28ms, total 28ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 139K, 7% free 55010K/58964K, paused 19ms, total 20ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 54.623MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 122K, 7% free 55071K/59032K, paused 29ms, total 29ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 54.683MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 20K, 7% free 55172K/59100K, paused 20ms, total 20ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 54.781MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 310K, 7% free 55165K/59168K, paused 18ms, total 19ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 54.774MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 485K, 7% free 55165K/59236K, paused 17ms, total 17ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 54.774MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 245K, 7% free 55365K/59304K, paused 17ms, total 17ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 54.970MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 66K, 7% free 55424K/59372K, paused 28ms, total 28ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 55.027MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 104K, 7% free 55568K/59440K, paused 21ms, total 21ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 55.167MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 47K, 7% free 55676K/59508K, paused 30ms, total 30ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 55.274MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 26K, 7% free 55791K/59576K, paused 24ms, total 24ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 55.386MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 30K, 7% free 55923K/59644K, paused 21ms, total 21ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 55.515MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 22K, 7% free 56048K/59712K, paused 17ms, total 18ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 55.636MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 611K, 7% free 55975K/59780K, paused 23ms, total 24ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 55.566MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 279K, 7% free 55975K/59848K, paused 20ms, total 20ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 55.565MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 92K, 7% free 56051K/59916K, paused 30ms, total 30ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 55.639MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 351K, 7% free 56272K/59984K, paused 31ms, total 31ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 25K, 7% free 56269K/59984K, paused 30ms, total 30ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 55.853MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 105K, 7% free 56320K/60052K, paused 19ms, total 19ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 55.902MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 526K, 7% free 56369K/60120K, paused 20ms, total 20ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 934K, 7% free 56462K/60120K, paused 19ms, total 20ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 56.041MB for 65552-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 140K, 7% free 56510K/60188K, paused 34ms, total 34ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 56.765MB for 775824-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 30K, 6% free 57414K/60948K, paused 17ms, total 17ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 57.241MB for 349072-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 6K, 6% free 57749K/61292K, paused 17ms, total 17ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 57.569MB for 349072-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 58091K/61636K, paused 18ms, total 18ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 57.902MB for 349072-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 58433K/61980K, paused 17ms, total 17ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 58.236MB for 349072-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 58774K/62324K, paused 26ms, total 27ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 58.569MB for 349072-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 59116K/62668K, paused 21ms, total 22ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 58.903MB for 349072-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 59457K/63012K, paused 17ms, total 17ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 59.236MB for 349072-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 59799K/63356K, paused 17ms, total 17ms
I/dalvikvm-heap(18068): Grow heap (frag case) to 59.570MB for 349072-byte allocation
D/dalvikvm(18068): GC_FOR_ALLOC freed 301K, 6% free 60326K/63700K, paused 25ms, total 25ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 168K, 5% free 60826K/63952K, paused 18ms, total 18ms
I/dalvikvm(18068): Jit: resizing JitTable from 4096 to 8192
D/dalvikvm(18068): GC_FOR_ALLOC freed 1166K, 5% free 61664K/64476K, paused 23ms, total 23ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 2061K, 5% free 62858K/65748K, paused 25ms, total 26ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 1867K, 4% free 64650K/67260K, paused 24ms, total 28ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 5784K, 9% free 63169K/69304K, paused 42ms, total 42ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 115K, 5% free 66326K/69304K, paused 22ms, total 24ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 6127K, 10% free 65352K/71840K, paused 53ms, total 53ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 257K, 5% free 68326K/71840K, paused 23ms, total 23ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 6537K, 10% free 67693K/74588K, paused 43ms, total 43ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 114K, 6% free 70847K/74588K, paused 22ms, total 22ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 1977K, 4% free 74341K/77420K, paused 38ms, total 38ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 2684K, 4% free 79560K/82616K, paused 48ms, total 48ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 5961K, 8% free 81482K/87804K, paused 57ms, total 62ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 3869K, 8% free 82684K/89868K, paused 50ms, total 50ms
D/dalvikvm(18068): GC_FOR_ALLOC freed 2325K, 5% free 87087K/90900K, paused 31ms, total 31ms
thanks
This may be a problem in Android's heap implementation:
http://androidxref.com/4.4.4_r1/xref/dalvik/vm/alloc/Heap.cpp
See comment in tryMalloc:
There will be a lot of churn if someone allocates a bunch of big objects in a row,
and we hit the frag case each time. A full GC for each.

Android GC_concurrent pauses activity

I love garbage collector, and it does it work good. But the problem is I have too many objects in my activity because there are too many Hashmaps and arraylists and other objects. So when I switch to other activity this happens.
12-04 01:02:17.119: D/dalvikvm(1124): GC_CONCURRENT freed 0K, 46% free 26267K/48327K, paused 2ms+5ms
12-04 01:02:17.249: D/dalvikvm(1124): GC_CONCURRENT freed 8877K, 60% free 19436K/48327K, paused 2ms+5ms
12-04 01:02:17.359: D/dalvikvm(1124): GC_CONCURRENT freed 1593K, 59% free 19888K/48327K, paused 2ms+5ms
12-04 01:02:17.459: D/dalvikvm(1124): GC_CONCURRENT freed 1572K, 58% free 20363K/48327K, paused 2ms+5ms
12-04 01:02:17.559: D/ExchangeService(578): Received deviceId from Email app: null
12-04 01:02:17.559: D/ExchangeService(578): !!! deviceId unknown; stopping self and retrying
12-04 01:02:17.569: D/dalvikvm(1124): GC_CONCURRENT freed 1594K, 57% free 20816K/48327K, paused 2ms+6ms
12-04 01:02:17.679: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 56% free 21278K/48327K, paused 2ms+5ms
12-04 01:02:17.779: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 56% free 21741K/48327K, paused 2ms+5ms
12-04 01:02:17.889: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 55% free 22203K/48327K, paused 2ms+5ms
12-04 01:02:17.999: D/dalvikvm(1124): GC_CONCURRENT freed 1579K, 54% free 22669K/48327K, paused 2ms+6ms
12-04 01:02:18.109: D/dalvikvm(1124): GC_CONCURRENT freed 1585K, 53% free 23130K/48327K, paused 2ms+6ms
12-04 01:02:18.229: D/dalvikvm(1124): GC_CONCURRENT freed 1580K, 52% free 23592K/48327K, paused 2ms+6ms
12-04 01:02:18.339: D/dalvikvm(1124): GC_CONCURRENT freed 1584K, 51% free 24052K/48327K, paused 2ms+5ms
12-04 01:02:18.449: D/dalvikvm(1124): GC_CONCURRENT freed 1570K, 50% free 24527K/48327K, paused 2ms+5ms
12-04 01:02:18.569: D/dalvikvm(1124): GC_CONCURRENT freed 1563K, 49% free 25012K/48327K, paused 2ms+6ms
12-04 01:02:18.649: D/dalvikvm(1124): GC_FOR_ALLOC freed 623K, 48% free 25189K/48327K, paused 39ms
12-04 01:02:18.659: I/dalvikvm-heap(1124): Grow heap (frag case) to 29.909MB for 5510676-byte allocation
12-04 01:02:18.719: D/dalvikvm(1124): GC_CONCURRENT freed 0K, 37% free 30571K/48327K, paused 2ms+5ms
12-04 01:02:19.159: D/dalvikvm(1124): GC_CONCURRENT freed 1976K, 37% free 30571K/48327K, paused 2ms+5ms
12-04 01:02:19.599: D/dalvikvm(1124): GC_CONCURRENT freed 1972K, 37% free 30571K/48327K, paused 2ms+5ms
12-04 01:02:20.049: D/dalvikvm(1124): GC_CONCURRENT freed 1976K, 37% free 30571K/48327K, paused 2ms+6ms
So the problem is Switching to other activity pauses the application for like 4 to 5 seconds and it looks like the app is going to do Unfortunately and then ohter activity starts. So what can I do to NOT pause the activity the app
What I have tried
1. Starting Activity in async task. (Displaying the progressbar when GC does the above work)
but the progress dialog also pauses.
2. Do the same with handler and thread.
above things did not help.
So How can I display a progress dialog when GC does its work and not pause the activity? I don't want to manually remove manually.

Is this normal GC behaviour from support.map.fragment?

I'm having some issues understanding the GC, and Maps V2. On Zoom (in / out) the GC kicks in constantly cleaning up, making the application hang for half a second in the mapview.
If I remove the mapview from the application everything runs fine, but as soon as I add the mapview GC kicks brutal in (On create, and on zoom in /out).
I'm using the supportv4.support.map.fragment. I dont know if I should include layout and code? As this is many classes, and a whole lot of code for a general question.
Would you say this is my fault / Most likely implemented maps wrong? Or caused a memory leak?
Or is this normal behavior? I run the app on my Xperia Z, and it works "ok", but if I try it on my S2 it's a nightmare.
A print of my Logcat going wild :
08-18 00:57:27.759: D/dalvikvm(12809): GC_FOR_ALLOC freed 4796K, 61% free 21315K/54640K, paused 34ms, total 35ms
08-18 00:57:29.681: D/dalvikvm(12809): GC_CONCURRENT freed 5994K, 61% free 21580K/54640K, paused 5ms+5ms, total 53ms
08-18 00:57:29.681: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 36ms
08-18 00:57:32.433: D/dalvikvm(12809): GC_FOR_ALLOC freed 3498K, 61% free 21699K/54640K, paused 67ms, total 67ms
08-18 00:57:32.804: D/dalvikvm(12809): GC_FOR_ALLOC freed 4774K, 61% free 21723K/54640K, paused 33ms, total 34ms
08-18 00:57:32.904: D/dalvikvm(12809): GC_FOR_ALLOC freed 5096K, 62% free 20916K/54640K, paused 31ms, total 32ms
08-18 00:57:33.224: D/dalvikvm(12809): GC_FOR_ALLOC freed 5296K, 62% free 20997K/54640K, paused 32ms, total 33ms
08-18 00:57:33.344: D/dalvikvm(12809): GC_FOR_ALLOC freed 5301K, 62% free 21083K/54640K, paused 30ms, total 31ms
08-18 00:57:33.454: D/dalvikvm(12809): GC_FOR_ALLOC freed 5397K, 63% free 20667K/54640K, paused 35ms, total 36ms
08-18 00:57:33.725: D/dalvikvm(12809): GC_CONCURRENT freed 4481K, 60% free 22222K/54640K, paused 3ms+5ms, total 37ms
08-18 00:57:33.825: D/dalvikvm(12809): GC_FOR_ALLOC freed 6110K, 61% free 21595K/54640K, paused 42ms, total 42ms
08-18 00:57:33.915: D/dalvikvm(12809): GC_CONCURRENT freed 5407K, 59% free 22492K/54640K, paused 3ms+5ms, total 38ms
08-18 00:57:33.915: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 26ms
08-18 00:57:33.915: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 29ms
08-18 00:57:33.995: D/dalvikvm(12809): GC_FOR_ALLOC freed 4654K, 60% free 22322K/54640K, paused 31ms, total 31ms
08-18 00:57:34.155: D/dalvikvm(12809): GC_CONCURRENT freed 5992K, 59% free 22815K/54640K, paused 3ms+4ms, total 34ms
08-18 00:57:34.155: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 28ms
08-18 00:57:34.155: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 26ms
08-18 00:57:34.275: D/dalvikvm(12809): GC_FOR_ALLOC freed 5334K, 58% free 23396K/54640K, paused 33ms, total 40ms
08-18 00:57:34.415: D/dalvikvm(12809): GC_FOR_ALLOC freed 5573K, 58% free 23322K/54640K, paused 45ms, total 45ms
08-18 00:57:34.505: D/dalvikvm(12809): GC_FOR_ALLOC freed 4165K, 58% free 23277K/54640K, paused 33ms, total 33ms
08-18 00:57:34.636: D/dalvikvm(12809): GC_FOR_ALLOC freed 4192K, 58% free 23238K/54640K, paused 41ms, total 42ms
08-18 00:57:34.736: D/dalvikvm(12809): GC_FOR_ALLOC freed 4138K, 58% free 23217K/54640K, paused 37ms, total 37ms
08-18 00:57:34.886: D/dalvikvm(12809): GC_FOR_ALLOC freed 5108K, 56% free 24575K/54640K, paused 46ms, total 46ms
08-18 00:57:35.026: D/dalvikvm(12809): GC_FOR_ALLOC freed 6540K, 56% free 24073K/54640K, paused 51ms, total 52ms
08-18 00:57:35.156: D/dalvikvm(12809): GC_FOR_ALLOC freed 4840K, 55% free 24738K/54640K, paused 31ms, total 31ms
08-18 00:57:35.356: D/dalvikvm(12809): GC_FOR_ALLOC freed 4325K, 55% free 24635K/54640K, paused 38ms, total 38ms
08-18 00:57:35.436: D/dalvikvm(12809): GC_FOR_ALLOC freed 4122K, 55% free 24632K/54640K, paused 35ms, total 35ms
08-18 00:57:35.526: D/dalvikvm(12809): GC_FOR_ALLOC freed 4722K, 57% free 24029K/54640K, paused 34ms, total 34ms
08-18 00:57:35.597: D/dalvikvm(12809): GC_FOR_ALLOC freed 4233K, 57% free 23916K/54640K, paused 32ms, total 32ms
08-18 00:57:36.027: D/dalvikvm(12809): GC_FOR_ALLOC freed 4581K, 57% free 23750K/54640K, paused 34ms, total 35ms
08-18 00:57:36.117: D/dalvikvm(12809): GC_FOR_ALLOC freed 4297K, 57% free 23573K/54640K, paused 32ms, total 33ms
08-18 00:57:36.207: D/dalvikvm(12809): GC_FOR_ALLOC freed 4223K, 58% free 23467K/54640K, paused 31ms, total 32ms
08-18 00:57:36.277: D/dalvikvm(12809): GC_FOR_ALLOC freed 4184K, 58% free 23399K/54640K, paused 31ms, total 31ms
08-18 00:57:36.357: D/dalvikvm(12809): GC_FOR_ALLOC freed 4209K, 58% free 23305K/54640K, paused 31ms, total 31ms
08-18 00:57:36.447: D/dalvikvm(12809): GC_FOR_ALLOC freed 4252K, 58% free 23173K/54640K, paused 35ms, total 35ms
08-18 00:57:36.988: D/dalvikvm(12809): GC_FOR_ALLOC freed 4669K, 58% free 23038K/54640K, paused 35ms, total 36ms
08-18 00:57:37.508: D/dalvikvm(12809): GC_FOR_ALLOC freed 4589K, 59% free 22919K/54640K, paused 54ms, total 55ms
08-18 00:57:38.940: D/dalvikvm(12809): GC_CONCURRENT freed 6052K, 57% free 23609K/54640K, paused 3ms+6ms, total 71ms
08-18 00:57:38.940: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 41ms
08-18 00:57:38.940: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 26ms
08-18 00:57:39.250: D/dalvikvm(12809): GC_FOR_ALLOC freed 6227K, 58% free 23000K/54640K, paused 33ms, total 34ms
08-18 00:57:40.501: D/dalvikvm(12809): GC_CONCURRENT freed 6455K, 58% free 23360K/54640K, paused 3ms+4ms, total 77ms
08-18 00:57:40.501: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 57ms
08-18 00:57:40.822: D/dalvikvm(12809): GC_CONCURRENT freed 7158K, 58% free 23100K/54640K, paused 2ms+5ms, total 38ms
08-18 00:57:40.822: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 23ms
08-18 00:57:41.022: D/dalvikvm(12809): GC_FOR_ALLOC freed 2905K, 57% free 23771K/54640K, paused 37ms, total 38ms
08-18 00:57:41.122: D/dalvikvm(12809): GC_CONCURRENT freed 6499K, 56% free 24292K/54640K, paused 7ms+6ms, total 44ms
08-18 00:57:41.122: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 36ms
08-18 00:57:41.232: D/dalvikvm(12809): GC_FOR_ALLOC freed 5791K, 57% free 23732K/54640K, paused 32ms, total 32ms
08-18 00:57:41.322: D/dalvikvm(12809): GC_FOR_ALLOC freed 4391K, 57% free 23723K/54640K, paused 34ms, total 34ms
08-18 00:57:41.402: D/dalvikvm(12809): GC_FOR_ALLOC freed 4853K, 58% free 22986K/54640K, paused 36ms, total 36ms
08-18 00:57:41.472: D/dalvikvm(12809): GC_FOR_ALLOC freed 4111K, 58% free 22975K/54640K, paused 30ms, total 31ms
08-18 00:57:41.602: D/dalvikvm(12809): GC_CONCURRENT freed 6093K, 57% free 23652K/54640K, paused 3ms+6ms, total 46ms
08-18 00:57:41.602: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 27ms
08-18 00:57:41.602: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 4ms
08-18 00:57:41.702: D/dalvikvm(12809): GC_FOR_ALLOC freed 5077K, 57% free 23645K/54640K, paused 34ms, total 34ms
08-18 00:57:41.783: D/dalvikvm(12809): GC_FOR_ALLOC freed 4265K, 57% free 23495K/54640K, paused 36ms, total 36ms
08-18 00:57:41.993: D/dalvikvm(12809): GC_FOR_ALLOC freed 4500K, 58% free 23113K/54640K, paused 81ms, total 81ms
08-18 00:57:42.083: D/dalvikvm(12809): GC_FOR_ALLOC freed 4842K, 60% free 22385K/54640K, paused 32ms, total 32ms
08-18 00:57:42.824: D/dalvikvm(12809): GC_FOR_ALLOC freed 4872K, 60% free 22271K/54640K, paused 41ms, total 41ms
08-18 00:57:42.934: D/dalvikvm(12809): GC_FOR_ALLOC freed 4732K, 60% free 22288K/54640K, paused 50ms, total 50ms
08-18 00:57:49.941: D/dalvikvm(12809): GC_FOR_ALLOC freed 5747K, 62% free 21152K/54640K, paused 36ms, total 36ms
08-18 00:57:50.081: D/dalvikvm(12809): GC_FOR_ALLOC freed 4324K, 62% free 20956K/54640K, paused 36ms, total 36ms
08-18 00:57:50.221: D/dalvikvm(12809): GC_FOR_ALLOC freed 4134K, 62% free 20925K/54640K, paused 34ms, total 34ms
08-18 00:57:52.193: D/dalvikvm(12809): GC_CONCURRENT freed 5892K, 62% free 21133K/54640K, paused 4ms+8ms, total 51ms
08-18 00:57:52.193: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 33ms
08-18 00:57:52.283: D/dalvikvm(12809): GC_FOR_ALLOC freed 1769K, 60% free 22065K/54640K, paused 38ms, total 38ms
08-18 00:57:52.353: D/dalvikvm(12809): GC_FOR_ALLOC freed 4917K, 61% free 21594K/54640K, paused 31ms, total 32ms
08-18 00:57:52.443: D/dalvikvm(12809): GC_FOR_ALLOC freed 5029K, 63% free 20683K/54640K, paused 31ms, total 31ms
08-18 00:57:52.523: D/dalvikvm(12809): GC_FOR_ALLOC freed 4289K, 63% free 20512K/54640K, paused 32ms, total 32ms
08-18 00:57:52.603: D/dalvikvm(12809): GC_FOR_ALLOC freed 4141K, 63% free 20486K/54640K, paused 32ms, total 32ms
08-18 00:57:52.723: D/dalvikvm(12809): GC_FOR_ALLOC freed 4425K, 62% free 20829K/54640K, paused 29ms, total 30ms
08-18 00:57:53.064: D/dalvikvm(12809): GC_FOR_ALLOC freed 5106K, 62% free 20810K/54640K, paused 40ms, total 41ms
08-18 00:57:56.347: D/dalvikvm(12809): GC_CONCURRENT freed 6009K, 62% free 20820K/54640K, paused 4ms+5ms, total 80ms
08-18 00:57:56.497: D/dalvikvm(12809): GC_FOR_ALLOC freed 2729K, 62% free 20880K/54640K, paused 32ms, total 32ms
08-18 00:57:56.597: D/dalvikvm(12809): GC_FOR_ALLOC freed 4888K, 63% free 20374K/54640K, paused 34ms, total 34ms
08-18 00:57:56.937: D/dalvikvm(12809): GC_FOR_ALLOC freed 5928K, 64% free 20162K/54640K, paused 32ms, total 32ms
08-18 00:57:57.077: D/dalvikvm(12809): GC_CONCURRENT freed 4630K, 61% free 21408K/54640K, paused 3ms+4ms, total 37ms
08-18 00:57:57.077: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 30ms
08-18 00:57:57.077: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 31ms
08-18 00:57:57.077: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 30ms
08-18 00:57:57.238: D/dalvikvm(12809): GC_FOR_ALLOC freed 6073K, 62% free 20893K/54640K, paused 32ms, total 32ms
08-18 00:57:57.318: D/dalvikvm(12809): GC_FOR_ALLOC freed 4142K, 62% free 20868K/54640K, paused 31ms, total 31ms
08-18 00:57:57.818: D/dalvikvm(12809): GC_FOR_ALLOC freed 4675K, 62% free 20893K/54640K, paused 34ms, total 35ms
08-18 00:57:57.898: D/dalvikvm(12809): GC_FOR_ALLOC freed 4127K, 62% free 20884K/54640K, paused 30ms, total 31ms
08-18 00:57:57.968: D/dalvikvm(12809): GC_FOR_ALLOC freed 4208K, 62% free 20798K/54640K, paused 30ms, total 30ms
08-18 00:57:58.179: D/dalvikvm(12809): GC_FOR_ALLOC freed 5894K, 63% free 20313K/54640K, paused 30ms, total 30ms
08-18 00:57:58.919: D/dalvikvm(12809): GC_CONCURRENT freed 5791K, 63% free 20421K/54640K, paused 2ms+4ms, total 40ms
08-18 00:57:58.919: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 35ms
08-18 00:57:59.079: D/dalvikvm(12809): GC_FOR_ALLOC freed 5360K, 63% free 20334K/54640K, paused 33ms, total 34ms
08-18 00:57:59.300: D/dalvikvm(12809): GC_CONCURRENT freed 5742K, 63% free 20509K/54640K, paused 3ms+14ms, total 119ms
08-18 00:57:59.310: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 12ms
08-18 00:57:59.690: D/dalvikvm(12809): GC_FOR_ALLOC freed 2021K, 61% free 21445K/54640K, paused 42ms, total 44ms
08-18 00:57:59.830: D/dalvikvm(12809): GC_FOR_ALLOC freed 5660K, 60% free 21941K/54640K, paused 42ms, total 42ms
08-18 00:57:59.930: D/dalvikvm(12809): GC_FOR_ALLOC freed 5045K, 60% free 22231K/54640K, paused 32ms, total 32ms
08-18 00:58:00.040: D/dalvikvm(12809): GC_FOR_ALLOC freed 4584K, 60% free 22140K/54640K, paused 54ms, total 54ms
08-18 00:58:00.130: D/dalvikvm(12809): GC_FOR_ALLOC freed 4670K, 61% free 21591K/54640K, paused 34ms, total 35ms
08-18 00:58:00.221: D/dalvikvm(12809): GC_FOR_ALLOC freed 4148K, 61% free 21562K/54640K, paused 30ms, total 30ms
08-18 00:58:00.321: D/dalvikvm(12809): GC_FOR_ALLOC freed 4164K, 61% free 21519K/54640K, paused 30ms, total 30ms
08-18 00:58:00.401: D/dalvikvm(12809): GC_FOR_ALLOC freed 4217K, 61% free 21417K/54640K, paused 29ms, total 29ms
08-18 00:58:00.471: D/dalvikvm(12809): GC_FOR_ALLOC freed 4105K, 61% free 21416K/54640K, paused 27ms, total 27ms
08-18 00:58:00.611: D/dalvikvm(12809): GC_FOR_ALLOC freed 4794K, 61% free 21371K/54640K, paused 33ms, total 34ms
08-18 00:58:00.681: D/dalvikvm(12809): GC_FOR_ALLOC freed 4107K, 61% free 21370K/54640K, paused 29ms, total 30ms
08-18 00:58:02.393: D/dalvikvm(12809): GC_FOR_ALLOC freed 5465K, 61% free 21435K/54640K, paused 33ms, total 33ms
08-18 00:58:02.523: D/dalvikvm(12809): GC_FOR_ALLOC freed 4571K, 59% free 22563K/54640K, paused 31ms, total 31ms
08-18 00:58:03.614: D/dalvikvm(12809): GC_FOR_ALLOC freed 6525K, 61% free 21447K/54640K, paused 39ms, total 39ms
08-18 00:58:03.724: D/dalvikvm(12809): GC_FOR_ALLOC freed 4316K, 61% free 21581K/54640K, paused 42ms, total 42ms
08-18 00:58:05.015: D/dalvikvm(12809): GC_CONCURRENT freed 5834K, 60% free 21992K/54640K, paused 3ms+6ms, total 43ms
08-18 00:58:06.056: D/dalvikvm(12809): GC_CONCURRENT freed 6081K, 60% free 22291K/54640K, paused 3ms+7ms, total 43ms
08-18 00:58:06.056: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 29ms
08-18 00:58:06.677: D/dalvikvm(12809): JIT code cache reset in 1 ms (1048524 bytes 2/0)
08-18 00:58:06.687: D/dalvikvm(12809): GC_CONCURRENT freed 7111K, 61% free 21744K/54640K, paused 3ms+7ms, total 55ms
08-18 00:58:06.687: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 19ms
08-18 00:58:08.278: D/dalvikvm(12809): GC_FOR_ALLOC freed 4619K, 60% free 22283K/54640K, paused 45ms, total 45ms
08-18 00:58:08.389: D/dalvikvm(12809): GC_FOR_ALLOC freed 5813K, 59% free 22471K/54640K, paused 33ms, total 33ms
08-18 00:58:08.469: D/dalvikvm(12809): GC_FOR_ALLOC freed 4225K, 60% free 22366K/54640K, paused 31ms, total 31ms
08-18 00:58:08.549: D/dalvikvm(12809): GC_FOR_ALLOC freed 4363K, 60% free 22122K/54640K, paused 32ms, total 32ms
08-18 00:58:08.789: D/dalvikvm(12809): GC_FOR_ALLOC freed 5598K, 60% free 21959K/54640K, paused 33ms, total 33ms
08-18 00:58:08.869: D/dalvikvm(12809): GC_FOR_ALLOC freed 4264K, 61% free 21812K/54640K, paused 31ms, total 32ms
08-18 00:58:08.949: D/dalvikvm(12809): GC_FOR_ALLOC freed 4332K, 61% free 21595K/54640K, paused 30ms, total 30ms
08-18 00:58:09.019: D/dalvikvm(12809): GC_FOR_ALLOC freed 4344K, 61% free 21371K/54640K, paused 29ms, total 29ms
08-18 00:58:09.109: D/dalvikvm(12809): GC_FOR_ALLOC freed 4273K, 62% free 21234K/54640K, paused 29ms, total 30ms
08-18 00:58:09.349: D/dalvikvm(12809): GC_FOR_ALLOC freed 5486K, 61% free 21376K/54640K, paused 30ms, total 30ms
08-18 00:58:09.450: D/dalvikvm(12809): GC_FOR_ALLOC freed 4512K, 61% free 21369K/54640K, paused 30ms, total 31ms
08-18 00:58:10.270: D/dalvikvm(12809): GC_FOR_ALLOC freed 4973K, 61% free 21620K/54640K, paused 32ms, total 33ms
08-18 00:58:10.370: D/dalvikvm(12809): GC_FOR_ALLOC freed 4236K, 61% free 21641K/54640K, paused 34ms, total 34ms
08-18 00:58:10.471: D/dalvikvm(12809): GC_FOR_ALLOC freed 4620K, 61% free 21365K/54640K, paused 32ms, total 32ms
08-18 00:58:10.541: D/dalvikvm(12809): GC_FOR_ALLOC freed 4108K, 61% free 21365K/54640K, paused 30ms, total 30ms
08-18 00:58:12.232: D/dalvikvm(12809): GC_FOR_ALLOC freed 5405K, 61% free 21615K/54640K, paused 35ms, total 35ms
08-18 00:58:12.382: D/dalvikvm(12809): GC_CONCURRENT freed 5083K, 59% free 22860K/54640K, paused 4ms+5ms, total 40ms
08-18 00:58:12.382: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 31ms
08-18 00:58:12.382: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 2ms
08-18 00:58:12.472: D/dalvikvm(12809): GC_FOR_ALLOC freed 4242K, 59% free 22790K/54640K, paused 31ms, total 31ms
08-18 00:58:12.553: D/dalvikvm(12809): GC_FOR_ALLOC freed 4204K, 59% free 22702K/54640K, paused 32ms, total 32ms
08-18 00:58:13.113: D/dalvikvm(12809): GC_FOR_ALLOC freed 5858K, 59% free 22847K/54640K, paused 37ms, total 38ms
08-18 00:58:13.223: D/dalvikvm(12809): GC_FOR_ALLOC freed 4548K, 59% free 22712K/54640K, paused 33ms, total 33ms
08-18 00:58:13.323: D/dalvikvm(12809): GC_FOR_ALLOC freed 4339K, 59% free 22625K/54640K, paused 30ms, total 31ms
08-18 00:58:13.413: D/dalvikvm(12809): GC_FOR_ALLOC freed 5406K, 61% free 21599K/54640K, paused 30ms, total 31ms
08-18 00:58:13.604: D/dalvikvm(12809): GC_CONCURRENT freed 6158K, 61% free 21733K/54640K, paused 2ms+4ms, total 38ms
08-18 00:58:13.614: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 32ms
08-18 00:58:15.005: D/dalvikvm(12809): GC_FOR_ALLOC freed 4289K, 59% free 22877K/54640K, paused 35ms, total 35ms
08-18 00:58:15.095: D/dalvikvm(12809): GC_FOR_ALLOC freed 4504K, 59% free 22520K/54640K, paused 31ms, total 31ms
08-18 00:58:15.175: D/dalvikvm(12809): GC_FOR_ALLOC freed 4684K, 60% free 21950K/54640K, paused 30ms, total 30ms
08-18 00:58:15.245: D/dalvikvm(12809): GC_FOR_ALLOC freed 4162K, 60% free 21904K/54640K, paused 29ms, total 30ms
08-18 00:58:16.176: D/dalvikvm(12809): GC_CONCURRENT freed 5225K, 58% free 23043K/54640K, paused 3ms+7ms, total 64ms
08-18 00:58:16.276: D/dalvikvm(12809): GC_FOR_ALLOC freed 4773K, 57% free 23539K/54640K, paused 33ms, total 33ms
08-18 00:58:16.376: D/dalvikvm(12809): GC_FOR_ALLOC freed 4421K, 57% free 23510K/54640K, paused 31ms, total 32ms
08-18 00:58:16.456: D/dalvikvm(12809): GC_FOR_ALLOC freed 4215K, 58% free 23474K/54640K, paused 30ms, total 30ms
08-18 00:58:16.827: D/dalvikvm(12809): GC_FOR_ALLOC freed 5377K, 59% free 22494K/54640K, paused 38ms, total 39ms
08-18 00:58:16.917: D/dalvikvm(12809): GC_FOR_ALLOC freed 4138K, 59% free 22476K/54640K, paused 31ms, total 32ms
08-18 00:58:16.987: D/dalvikvm(12809): GC_FOR_ALLOC freed 4263K, 60% free 22324K/54640K, paused 30ms, total 31ms
08-18 00:58:18.909: D/dalvikvm(12809): GC_FOR_ALLOC freed 5483K, 60% free 22387K/54640K, paused 33ms, total 34ms
08-18 00:58:19.009: D/dalvikvm(12809): GC_FOR_ALLOC freed 4107K, 60% free 22382K/54640K, paused 39ms, total 39ms
08-18 00:58:19.119: D/dalvikvm(12809): GC_FOR_ALLOC freed 4455K, 60% free 22348K/54640K, paused 35ms, total 35ms
08-18 00:58:21.902: D/dalvikvm(12809): GC_FOR_ALLOC freed 7009K, 61% free 21810K/54640K, paused 38ms, total 38ms
08-18 00:58:22.112: D/dalvikvm(12809): GC_CONCURRENT freed 5015K, 58% free 23221K/54640K, paused 3ms+4ms, total 38ms
08-18 00:58:22.112: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 28ms
08-18 00:58:22.112: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 30ms
08-18 00:58:22.232: D/dalvikvm(12809): GC_FOR_ALLOC freed 5467K, 60% free 22264K/54640K, paused 30ms, total 30ms
08-18 00:58:22.302: D/dalvikvm(12809): GC_FOR_ALLOC freed 4119K, 60% free 22264K/54640K, paused 31ms, total 31ms
08-18 00:58:22.372: D/dalvikvm(12809): GC_FOR_ALLOC freed 4100K, 60% free 22263K/54640K, paused 30ms, total 30ms

Categories

Resources