Tôi đang sử dụng SBT 0.7.7. Khi tôi thực hiện thay đổi đối với dự án Lift tôi và tái biên dịch qua:Lỗi Bộ nhớ Sử dụng SBT Khi Thực hiện Dự án Nâng
jetty-stop
compile
jetty-run
tôi nhận được lỗi sau:
Error during sbt execution: java.lang.OutOfMemoryError: PermGen space
tôi được xác định bên trong /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" "[email protected]"
Có thể trùng lặp: [câu hỏi này] (http://stackoverflow.com/questions/1451648/permgen-problems-with-lift-and-jetty). – Philippe
Cảm ơn Philippe. Tôi đã thử thêm các tùy chọn này vào sbt-0.7 nhưng tôi vẫn gặp phải những lỗi đó. – Hahnemann