running into Heap issue


Last Updated:

  1. kaancho

    kaancho Member This Topic's Starter

    Joined:
    Jul 15, 2010
    Messages:
    19
    Likes Received:
    0
    Hi,
    I am trying to download a JSON string from a url in the backend but my app seems to crash when the string is too big.

    I tried to use AsyncTask to not hold up the resources but i keep on having that problem. Any suggestions on how to load big data.

    The error I get is:
    Code (Text):
    1.  
    2. D/dalvikvm(  206): GC freed 2844 objects / 233144 bytes in 82ms
    3. I/global  (  206): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
    4. D/dalvikvm(  206): GC freed 1576 objects / 153960 bytes in 68ms
    5. D/dalvikvm(  206): GC freed 144 objects / 129224 bytes in 66ms
    6. D/dalvikvm(  206): GC freed 7 objects / 110872 bytes in 67ms
    7. D/dalvikvm(  206): GC freed 9 objects / 166280 bytes in 66ms
    8. I/dalvikvm-heap(  206): Grow heap (frag case) to 4.340MB for 373340-byte allocation
    9. D/dalvikvm(  206): GC freed 75 objects / 3320 bytes in 82ms
    10. D/dalvikvm(  206): GC freed 14 objects / 249432 bytes in 140ms
    11. I/dalvikvm-heap(  206): Grow heap (frag case) to 4.634MB for 560006-byte allocation
    12. D/dalvikvm(  206): GC freed 0 objects / 0 bytes in 113ms
    13. D/dalvikvm(  206): GC freed 17 objects / 374096 bytes in 70ms
    14. I/dalvikvm-heap(  206): Grow heap (frag case) to 5.079MB for 840004-byte allocation
    15. W/ActivityManager(   56): Launch timeout has expired, giving up wake lock!
    16. D/dalvikvm(  206): GC freed 0 objects / 0 bytes in 92ms
    17. D/dalvikvm(  206): GC freed 29 objects / 561384 bytes in 86ms
    18. I/dalvikvm-heap(  206): Grow heap (frag case) to 5.747MB for 1260002-byte allocation
    19. D/dalvikvm(  206): GC freed 0 objects / 0 bytes in 89ms
    20. D/dalvikvm(  206): GC freed 44 objects / 842096 bytes in 76ms
    21. I/dalvikvm-heap(  206): Grow heap (frag case) to 6.748MB for 1889998-byte allocation
    22. D/dalvikvm(  206): GC freed 0 objects / 0 bytes in 88ms
    23. W/ActivityManager(   56): Activity idle timeout for HistoryRecord{43c02220 com.android.dev.rcu_I/.MainScreen}
    24. D/dalvikvm(  206): GC freed 72 objects / 1263440 bytes in 82ms
    25. I/dalvikvm-heap(  206): Grow heap (frag case) to 8.250MB for 2834992-byte allocation
    26. D/dalvikvm(  206): GC freed 0 objects / 0 bytes in 107ms
    27. D/dalvikvm(  206): GC freed 105 objects / 1895040 bytes in 104ms
    28. I/dalvikvm-heap(  206): Grow heap (frag case) to 10.502MB for 4252484-byte allocation
    29. D/dalvikvm(  206): GC freed 0 objects / 0 bytes in 159ms
    30. D/dalvikvm(  206): GC freed 157 objects / 2842568 bytes in 87ms
    31. I/dalvikvm-heap(  206): Forcing collection of SoftReferences for 6378722-byte allocation
    32. D/dalvikvm(  206): GC freed 0 objects / 0 bytes in 71ms
    33. E/dalvikvm-heap(  206): Out of memory on a 6378722-byte allocation.
    34.  
     

    Advertisement
  2. kaancho

    kaancho Member This Topic's Starter

    Joined:
    Jul 15, 2010
    Messages:
    19
    Likes Received:
    0
    any help here?
     

Share This Page

Loading...