Skip to content

Commit 6c6edba

Browse files
committed
Bring java flags to same value in "go"
We often see tests failing in Travis because we exhaust memory. This is unlikely to be the memory required for the JVM itself (4GB is plenty), so it's likely to be for the code being being generated at run time. Expand the amount of space from 256 to 512M
1 parent 2afd275 commit 6c6edba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
unset GEM_HOME
55
unset GEM_PATH
66

7-
JAVA_OPTS="-client -Xmx4096m -XX:ReservedCodeCacheSize=256m"
7+
JAVA_OPTS="-client -Xmx4096m -XX:ReservedCodeCacheSize=512m"
88

99
java_version=`java -version 2>&1 | sed 's/java version "1\.\(.*\)\..*"/\1/; 1q'`
1010

go.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@echo off
22

3-
java -Xmx2048m -XX:MetaspaceSize=1024m -XX:ReservedCodeCacheSize=256m -client -jar third_party\jruby\jruby-complete.jar -X-C -S rake %*
3+
java -Xmx4096m -XX:MetaspaceSize=1024m -XX:ReservedCodeCacheSize=512m -client -jar third_party\jruby\jruby-complete.jar -X-C -S rake %*

0 commit comments

Comments
 (0)