How to Improve Performance on Android with VM Heap Size

VM Heap Size

Java SDK allows developers to create quality applications quickly. However, it is a common criticism for Android that Java is not the best programming language when it comes to system resource management. Although it has been updating since many years, Android is still not fast enough for multi-tasking and many other operations. There is only few ways to make Android faster and one of them is VM Heap Size. Java virtual machine stores Java codes. VM Heap Size allows you to change the system memory allocated for this section.


The size left for this section saved in build.prop and depends on the memory available on the smartphone. This is 128MB for 1GB RAM or 256MB for 2GB RAM. If the device is rooted, it is possible to edit build.prop and therefore change the size.

[appbox googleplay id=com.grarak.kerneladiutor]

Download this free app above and grant root access after launced. Things you can change in heap are growth limit, target utilization, min and max values. There is also a few more but we need to edit the below parameters only.

  • dalvik.vm.heapsize
  • dalvik.vm.heapgrowthlimit

VM Heap Size

Once you lower these two values the multi-tasking performance may improve significantly and the effect of this result can be witnessed most while playing games on your device.

Note: Since these are system files, you may want to take a backup before changing them or you can note the default values. Also, for the safest result try to change the allocated memory 10MB most at a time. Observe the result and reduce the size again. There should be an “m” letter at the end of the size value. Just like the example below. If you don’t put an “m”, the device may stuck in bootloop.

  • dalvik.vm.heapsize=96m