Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The settings menu in CM6 lets you change the maximum per-process heap size (internally, that’s the dalvik.vm.heapsize property). What are the practical effects of raising or lowering that setting? On my G1, I changed it to 12m from the default of 16m, and I noticed that switching applications feels faster, but I wonder if it will cause some applications to run out of memory sooner.

share|improve this question
up vote 9 down vote accepted

Here's a great article someone wrote on the effect of changing it, very detailed:

In short, with the G1, it can cause bigger applications to crash. I would just recommend you keep it default or find a value that you do not see any crashes in applications with.

As far as anything else goes, in the short period of time searching else where and reading over different posts. Could not personally find any other effects, other than possibly battery life.

share|improve this answer
That sounds good. I think I’ll keep it since nothing is crashing (although the greediest thing I tried was Maps), and the launcher seems to be staying in memory much more often. – Josh Lee Oct 13 '10 at 4:39

If you have a phone with low memory (like the G1) and spend your day switching between a couple little applications, then lowering this number will speed up your system and allow more programs to stay loaded up, making switching faster.

If you have heavy weight applications (such as the FB app!) that can't get their jobs done inside the limit you set, they will crash and die for no apparent reason until you increase the number enough that they can survive. I usually find this preferable. Switching apps on my phone is slower, but the big jobs don't randomly crash.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.