travis-ci/travis-cookbooks — pull request #24 by gildegoma (2012-01-27 15:04:04+00:00)
Title: [sbt] Tune JVM memory management

In new sbt-0.11.2.deb package, sbt is launched with:

* Max 512M for permanent heap (for classes and methods)
* Max 512M for ordinary heap (for object instances)

```
java -Xmx512M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512M
-jar /usr/lib/sbt-0.11.2/sbt-launch.jar "$@"
```

These extra parameters allow builds with important memory footprint to be
executed without crashing with a java.lang.StackOverflowError

Note: Version set to 1.1.1 since it is a minor change on previous cookbook (1.1.0), see PR #22