From c6728ced25fb6d3ebc03d50fe1641c20b21089d4 Mon Sep 17 00:00:00 2001 From: Tatham Oddie Date: Fri, 8 Nov 2013 14:01:41 +1100 Subject: [PATCH] chore(grunt): reduce JVM heap size hint on win The current grunt scripts require at least 2GB of heap space to be allocated by the JVM, even though this is not needed to actually complete the build. Adding 64-bit to the mix, this means grunt package fails on machines without a whole 4GB of RAM free. Closes #4595 --- lib/grunt/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grunt/utils.js b/lib/grunt/utils.js index 2c641e7bc273..4e6a566e49d6 100644 --- a/lib/grunt/utils.js +++ b/lib/grunt/utils.js @@ -172,7 +172,7 @@ module.exports = { shell.exec( 'java ' + this.java32flags() + ' ' + - '-Xmx2g ' + + '-Xmx512m ' + '-cp bower_components/closure-compiler/compiler.jar' + classPathSep + 'bower_components/ng-closure-runner/ngcompiler.jar ' + 'org.angularjs.closurerunner.NgClosureRunner ' +