0

is any one know what is the meaning this LOG test it display every time when i do any operation in my APP TEXT

09-06 17:41:30.194: D/dalvikvm(4900): GC_CONCURRENT freed 440K, 49% free 3317K/6471K, external 0K/512K, paused 4ms+7ms

dos it related to memory allocation ?

Youddh
  • 1,511
  • 4
  • 34
  • 51
  • This is a memory log, [check out this link for more information](https://sites.google.com/site/pyximanew/blog/androidunderstandingddmslogcatmemoryoutputmessages) – jnthnjns Sep 06 '12 at 12:21

2 Answers2

2

GC_CONCURRENT

Means that Garbage Collection happens in a parallel manner. Without affecting any performance.

freed 440K

This particular cycle of GC has freed 440k memory.

free 3317K/6471K

Available and total Heap Memory Details.

external 0K/512K

External Memory available for your app(other than heap).

4ms+7ms

4ms at the beginning of GC was paused and at the end 7ms was consumed by GC.

That is, during this GC, all your activities were suspended for a total of 11ms , 4ms at the beginning and 7ms at the end.

For more info on this, please watch this video. He explains this very clearly.

Patrick Dubroy Memory Management

Andro Selva
  • 53,910
  • 52
  • 193
  • 240
  • yes.. , my PM say that This app has serious memory leak problem, please terminate unused Activity /View. have u any idea to find it..(is this Log help me to find it). – Youddh Sep 07 '12 at 05:20
  • Log is just a key. Please watch the whole video. It has everything you are looking for. He explains about MAT and stuffs to be done for memory leak. Please do watch the entire video. Man you will love it. – Andro Selva Sep 07 '12 at 05:23
1

Indeed. It shows that garbage colector was fired ( which happens on regular basis) and it could reclaim 440K of memory. Whether it is a lot or not depends on your application, but less is better. Rule of thumb is to avoid memory allocation whenever possible.

Konstantin Pribluda
  • 12,329
  • 1
  • 30
  • 35