From issues-return-95819-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Thu Jul 5 05:00:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 37067180608 for ; Thu, 5 Jul 2018 05:00:06 +0200 (CEST) Received: (qmail 73935 invoked by uid 500); 5 Jul 2018 03:00:05 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 73924 invoked by uid 99); 5 Jul 2018 03:00:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2018 03:00:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C02A61A5545 for ; Thu, 5 Jul 2018 03:00:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lXnPYPn_Ikst for ; Thu, 5 Jul 2018 03:00:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D59885F300 for ; Thu, 5 Jul 2018 03:00:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6C972E00A7 for ; Thu, 5 Jul 2018 03:00:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3374327508 for ; Thu, 5 Jul 2018 03:00:00 +0000 (UTC) Date: Thu, 5 Jul 2018 03:00:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-14139) Can't run android commands with 32bit Java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-14139?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165332= 21#comment-16533221 ]=20 ASF GitHub Bot commented on CB-14139: ------------------------------------- erisu closed pull request #839: CB-14139 android: Add jvmargs flag for cust= om values URL: https://github.com/apache/cordova-docs/pull/839 =20 =20 =20 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). =20 +#### 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 usin= g the `--jvmargs` flag in your Cordova `build` or `run` commands: + +```bash +$ cordova run android -- --jvmargs=3D-Xmx1024m +``` + #### Extending build.gradle =20 If you need to customize `build.gradle`, rather than edit it directly, you =20 ---------------------------------------------------------------- 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. =20 For queries about this service, please contact Infrastructure at: users@infra.apache.org > 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=3D---Xmx2048m o= n line 59, which prevents it from running on 32bit Java. It always fails wi= th VM heap error. The workaround is to create an environment variable __JAV= A__OPTIONS=3D-Xmx512m, but this then affects the whole system. > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org