Skip to content

Commit

Permalink
Bring java flags to same value in "go"
Browse files Browse the repository at this point in the history
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
  • Loading branch information
shs96c committed Aug 8, 2017
1 parent 2afd275 commit 6c6edba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
unset GEM_HOME
unset GEM_PATH

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

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

Expand Down
2 changes: 1 addition & 1 deletion go.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off

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

0 comments on commit 6c6edba

Please sign in to comment.