First exposure to no MaxPermSize in Java 8

Just ran the latest version of sbt (installed via MacPorts) with Java 8 and got this:

$ sbt
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0

I did hear about the change, but have never seen its consequences. It has now changed.

$ java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b76)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b17, mixed mode)

It looks like it’s sbt to set the option MaxPermSize=384m.

$ type sbt
sbt is /opt/local/bin/sbt
$ grep -i permsize /opt/local/bin/sbt
    JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8"

Thanks sbt! I will now remember that Java 8 has indeed removed support for the permgen.

Be Sociable, Share!
This entry was posted in Languages, Tools.
%d bloggers like this: