Android 15’s new Linux Terminal app is limited to 4GB of memory, which can be insufficient for developers.
A workaround involves increasing the zram size, creating a swap file, and adjusting swappiness to improve memory availability.
While not a perfect solution, this method should help reduce crashes due to low memory in the Linux VM.
One of the most exciting new features in the second quarterly release of Android 15 is the Linux Terminal app, allowing users to run full-fledged Linux applications on Android.