Tuesday, 15 July 2014

performance - Android Not Enough Heap Allocated -


I have an application that is communicating with an Ardino and this is a NATI example for controlling RDO Runs. The problem is that I am not running out of memory, but according to the ADB lockset, the size of the total heap is very low for the size of the pile, I am always about 10% free, so any request on the Neti server is a GC When I get a bunch

  D / DelWiki (2862): WAIT_FOR_CONCURRENT_GC 18 9ms blocked   

Even ordinary Whatever the request does not (at least through me) At least one loses GC poses on second set in my manifest and the simulator device has 512 MB of VM heap but it is not allocating anywhere.

  android: largeHeap = " True "  

near that number (this is approximately 10MB allocated) I do not have a memory leak because 10% is free of charge, it goes +/- 2-3% . Even with 2 gigas rams (closed with all other applications) on the phone, if I'm always running at least, then this is a solution for a free 2x 3 MB pile?

Device size RAM really does not matter, because having 2 GB RAM does not mean That's going to get you 2 GB heap.

The minimum stack size specified by Google in its recommendations is 16MB, you will not get a small pile than that.

largeHeap works only on Android 3.0 and above, and it does not guarantee size of a larger size.

> You can not do a lot to get the big app, but you can re-write your app using NDK, in which the size of the pile does not matter because you are using the Dalvik VM Runs outside, and therefore (almost) all can use the device's RAM.

However, walking with 10% free help space is not bad.

No comments:

Post a Comment