Java applications use two kinds of heap memory, plain Java heap and LAM (Large Array Memory). The LAM is shared with other processes on the phone. Standard Java objects and vectors of Java objects are always located on the Java heap. Arrays of primitive types () however may be put in the LAM if the plain Java heap is low on memory. Small arrays have a larger chance of ending up in the plain Java heap, while large arrays more often are stored in the LAM. Images are also sometimes placed in LAM.
Read more … »


