Error
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=m; support was removed in 8.0
Since When
After migrating to Java 8
Solution
Remove MaxPermSize
as this is not needed anymore.
You should see if you want to define MaxMetaspaceSize
-XX:MaxMetaspaceSize=<metaspace size>[g|m|k]
By default Metaspace in Java VM 8 is not limited, but for system stability it makes sense to limit it with some finite value.
Explanation
The Permanent Generation (PermGen) space has completely been removed and is kind of replaced by a new space called Metaspace.The consequences of the PermGen removal is that obviously the PermSize and MaxPermSize JVM arguments are ignored and you will never get a java.lang.OutOfMemoryError
: PermGen error. The JDK 8 HotSpot JVM is now using native memory for the representation of class metadata and is called Metaspace.
Must Read
You should read the below articles to find out what impact it will have on your application :