记一次jdk1.7升级jdk1.8项目报错
使用jdk1.8后,控制台出现下面提示信息:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=256m; support was removed in 8.0 Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; support was removed in 8.0
在eclipse中或者tomcat 配置中升级如下配置即可.
-Xmx2048m -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=768m -Xss2m