I am using SBT 0.7.7. When I make a change to my Lift project and re-compile via:
jetty-stop
compile
jetty-run
I get the following error:
Error during sbt execution: java.lang.OutOfMemoryError: PermGen space
I have the following defined inside /opt/local/bin/sbt-0.7:
# Is the location of the SBT launcher JAR file.
LAUNCHJAR="/opt/local/share/sbt-0.7/sbt-launch-0.7.7.jar"
# Ensure enough heap space is created for SBT.
if [ -z "$JAVA_OPTS" ]; then
JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:MaxPermSize=256m -Xmx512M -Xss2M"
fi
# Assume java is already in the shell path.
exec java $JAVA_OPTS -jar "$LAUNCHJAR" "$@"