On Tue, Mar 29, 2011 at 5:15 PM, Nathan <[email protected]> wrote: > Until I got a recent log, I didn't know how much it was trying to > allocate - 2Megabytes. That seems awfully greedy when you have a 16M > heap - multiple downloads in a row without triggering garbage > collection are sure to bring you down. I'm happy to allocate less > since I'm only downloading 69K files.
I think the Thunderbolt should have a larger heap than 16MB -- 24MB would be my guess. The problem isn't only the size, but the fact that Android employs a GC engine that tends to fragment, so while there might be gobs of heap space, there might not be a 2MB block free. Anything looking to regularly use large blocks like that should maintain their own pool, which HttpClient doesn't do (expecting more like the 8K (IIRC) default). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

