heap size

How to control an Android application's heap size

Here are two notes (separated by the horizontal line) on what you can do to try to control an Android application’s heap size, from this SO link. As you can see, you can’t set the heap size directly, like you can with the java command. Here’s a link to the android.com 'large heap' setting documentation page.

How to control Java heap size (memory) allocation (xmx, xms)

Java memory FAQ: How do I control the amount of memory my Java program uses (i.e., Java RAM usage)?

One of the Linux servers that I use is a little starved for memory, but I need to run a Java program on it periodically to run some utility tasks. However, every time I try to run the program I get this Java heap size error message: