[ 
https://issues.apache.org/jira/browse/CB-14139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16533221#comment-16533221
 ] 

ASF GitHub Bot commented on CB-14139:
-------------------------------------

erisu closed pull request #839: CB-14139 android: Add jvmargs flag for custom 
values
URL: https://github.com/apache/cordova-docs/pull/839
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/www/docs/en/dev/guide/platforms/android/index.md 
b/www/docs/en/dev/guide/platforms/android/index.md
index 18c321b75..5bf93f14b 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


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Can't run android commands with 32bit Java
> ------------------------------------------
>
>                 Key: CB-14139
>                 URL: https://issues.apache.org/jira/browse/CB-14139
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: 8.0.0
>         Environment: Win 10 Pro x64
>            Reporter: misterTi
>            Assignee: Joe Bowser
>            Priority: Blocker
>
> GradleBuilder.js has a buiit-in option org.gradle.jvmargs=---Xmx2048m on line 
> 59, which prevents it from running on 32bit Java. It always fails with VM 
> heap error. The workaround is to create an environment variable 
> __JAVA__OPTIONS=-Xmx512m, but this then affects the whole system.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to