heroku/heroku-buildpack-scala — pull request #26 by ndeverge (2012-10-23 08:10:59+00:00)
Title: More Permanent Generation space for compile.

When I tried to push a Play 2.0 application to Heroku, I got an "java.lang.OutOfMemoryError: PermGen space".

The full error message is:

[info] Compiling 20 Scala sources and 34 Java sources to /tmp/build_3ra28o3q8fp8s/target/scala-2.9.1/classes...
[success] Total time: 40 s, completed Oct 22, 2012 1:05:52 PM
sbt appears to be exiting abnormally.
The log file for this session is at /tmp/sbt4671502314349822780.log
java.lang.OutOfMemoryError: PermGen space
Error during sbt execution: java.lang.OutOfMemoryError: PermGen space
! Failed to build app with sbt
! Heroku push rejected, failed to compile Play 2.0 - java app

This pull request simply add more PermGen memory.