Avatar
mara
Člen
Avatar
mara:

ahojte, mám android aplikaci, která normálně funguje, ale celou dobu hlásí do logcatu toto :

--------- beginning of /dev/log/mainD/dalvikvm(13399): GC_CONCURRENT freed 375K, 33% free 11892K/17607K, paused 12ms+3ms, total 35msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 12msD/dalvikvm(13399): GC_CONCURRENT freed 1488K, 37% free 11245K/17607K, paused 12ms+8ms, total 43msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 20msD/dalvikvm(13399): GC_CONCURRENT freed 417K, 35% free 11449K/17607K, paused 2ms+3ms, total 52msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 45msD/dalvikvm(13399): GC_CONCURRENT freed 358K, 34% free 11780K/17607K, paused 12ms+3ms, total 40msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 14msD/dalvikvm(13399): GC_CONCURRENT freed 1370K, 37% free 11207K/17607K, paused 2ms+3ms, total 24msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 13msD/dalvikvm(13399): GC_CONCURRENT freed 500K, 36% free 11323K/17607K, paused 2ms+2ms, total 19msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 11msD/dalvikvm(13399): GC_CONCURRENT freed 342K, 34% free 11638K/17607K, paused 1ms+2ms, total 19msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 12msD/dalvikvm(13399): GC_CONCURRENT freed 391K, 32% free 12001K/17607K, paused 2ms+2ms, total 20msD/dalvikvm(13399): GC_CONCURRENT freed 1573K, 36% free 11312K/17607K, paused 2ms+3ms, total 22msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 12msD/dalvikvm(13399): GC_CONCURRENT freed 351K, 35% free 11607K/17607K, paused 12ms+2ms, total 29msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 11msD/dalvikvm(13399): GC_CONCURRENT freed 391K, 33% free 11954K/17607K, paused 2ms+2ms, total 19msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 13msD/dalvikvm(13399): GC_CONCURRENT freed 1539K, 36% free 11275K/17607K, paused 12ms+2ms, total 38msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 15msD/dalvikvm(13399): GC_CONCURRENT freed 367K, 35% free 11544K/17607K, paused 12ms+2ms, total 35msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 4msD/dalvikvm(13399): GC_CONCURRENT freed 374K, 33% free 11892K/17607K, paused 12ms+3ms, total 34msD/dalvikvm(13399): GC_CONCURRENT freed 1488K, 37% free 11245K/17607K, paused 12ms+3ms, total 41msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 7msD/dalvikvm(13399): GC_CONCURRENT freed 417K, 35% free 11449K/17607K, paused 1ms+3ms, total 19msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 12msD/dalvikvm(13399): GC_CONCURRENT freed 358K, 34% free 11780K/17607K, paused 1ms+3ms, total 18msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 12msD/dalvikvm(13399): GC_CONCURRENT freed 1370K, 37% free 11207K/17607K, paused 11ms+2ms, total 37msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 15msD/dalvikvm(13399): GC_CONCURRENT freed 500K, 36% free 11323K/17607K, paused 2ms+3ms, total 20msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 11msD/dalvikvm(13399): GC_CONCURRENT freed 342K, 34% free 11638K/17607K, paused 2ms+3ms, total 20msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 13msD/dalvikvm(13399): GC_CONCURRENT freed 391K, 32% free 12001K/17607K, paused 12ms+2ms, total 30msD/dalvikvm(13399): GC_CONCURRENT freed 1573K, 36% free 11312K/17607K, paused 1ms+2ms, total 18msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 12msD/dalvikvm(13399): GC_CONCURRENT freed 351K, 35% free 11607K/17607K, paused 12ms+2ms, total 33msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 13msD/dalvikvm(13399): GC_CONCURRENT freed 391K, 33% free 11954K/17607K, paused 2ms+3ms, total 17msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 12msD/dalvikvm(13399): GC_CONCURRENT freed 1539K, 36% free 11275K/17607K, paused 12ms+2ms, total 35msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 11msD/dalvikvm(13399): GC_CONCURRENT freed 384K, 35% free 11527K/17607K, paused 2ms+2ms, total 18msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 12msD/dalvikvm(13399): GC_CONCURRENT freed 358K, 33% free 11892K/17607K, paused 12ms+2ms, total 28msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 10msD/dalvikvm(13399): GC_CONCURRENT freed 1488K, 37% free 11245K/17607K, paused 2ms+2ms, total 19msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 12msD/dalvikvm(13399): GC_CONCURRENT freed 417K, 35% free 11449K/17607K, paused 12ms+2ms, total 33msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 13msD/dalvikvm(13399): GC_CONCURRENT freed 358K, 34% free 11780K/17607K, paused 2ms+2ms, total 18msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 12msD/dalvikvm(13399): GC_CONCURRENT freed 1370K, 37% free 11207K/17607K, paused 12ms+2ms, total 28msD/dalvikvm(13399): WAIT_FOR_CONCURRENT_GC blocked 6msD/dalvikvm(13399): GC_CONCURRENT freed 500K, 36% free 11323K/17607K, paused 12ms+2ms, total 28msD/dalvikvm(13399):

neví někdo co s tím ? Něco už jsem o tom četl, že je to nedostatkem paměti RAM, ale nevím, jak kód ještě zjednodušit. Nebo nemůže to být překreslováním ? všem děkuji za odpovědi.
Marek

Odpovědět 1.5.2015 14:53
Co na srdci, to na Facebooku
Avatar
Filip Šohajek
Redaktor
Avatar
Odpovídá na mara
Filip Šohajek:

Někde tam musíš mít memory leak. Je to kvůli tomu, že je heap (halda) plná. Proto se volá Garbage collector.
P.S : Memory usage jde monitorovat pomocí Android Device Monitor

Editováno 1.5.2015 15:18
 
Nahoru Odpovědět 1.5.2015 15:14
Avatar
mara
Člen
Avatar
Odpovídá na Filip Šohajek
mara:

aha díky. a jak to teda spravím, aby mi to toto nedělalo ? a jak tam musím mít memory leak ? zatím tady s tímto nemám zkušenosti, tak děkuji za každou radu. Díky
Marek

Nahoru Odpovědět 1.5.2015 15:20
Co na srdci, to na Facebooku
Avatar
Filip Šohajek
Redaktor
Avatar
Odpovídá na mara
Filip Šohajek:

Podívej se sem : https://developer.android.com/…-memory.html Tam si analyzuj využití paměti, a potom to na tom místě oprav.

 
Nahoru Odpovědět 1.5.2015 15:26
Avatar
mara
Člen
Avatar
Nahoru Odpovědět 1.5.2015 15:27
Co na srdci, to na Facebooku
Děláme co je v našich silách, aby byly zdejší diskuze co nejkvalitnější. Proto do nich také mohou přispívat pouze registrovaní členové. Pro zapojení do diskuze se přihlas. Pokud ještě nemáš účet, zaregistruj se, je to zdarma.

Zobrazeno 5 zpráv z 5.