From a69d73e6bf6c285a62408cdef4dd3668bde9a964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A8=E3=83=AA=E3=82=B9?= Date: Thu, 28 Jun 2018 13:23:21 +0900 Subject: [PATCH] CB-14139 android: Add jvmargs flag for custom values --- www/docs/en/dev/guide/platforms/android/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/www/docs/en/dev/guide/platforms/android/index.md b/www/docs/en/dev/guide/platforms/android/index.md index 18c321b75bf..5bf93f14bf1 100644 --- a/www/docs/en/dev/guide/platforms/android/index.md +++ b/www/docs/en/dev/guide/platforms/android/index.md @@ -241,6 +241,16 @@ Instead, these two files should be copied from another location into that folder as part of the build command by using the `before_build` [hook](../../appdev/hooks/index.html). +#### Configuring Gradle's JVM memory settings +It is possible to adjust the Gradle's JVM memory by +[configuring](https://docs.gradle.org/current/userguide/build_environment.html#sec:configuring_jvm_memory) the JVM settings that Cordova exposes. + +Cordova's default flag is`-Xmx2048m`. You can change this property by using the `--jvmargs` flag in your Cordova `build` or `run` commands: + +```bash +$ cordova run android -- --jvmargs=-Xmx1024m +``` + #### Extending build.gradle If you need to customize `build.gradle`, rather than edit it directly, you