当前位置: 代码迷 >> 综合 >> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in
  详细解决方案

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

热度:8   发布时间:2023-12-15 07:04:16.0

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

 

“JDK 8兼容性指南”  指出,在Java 8中,命令行标志  MaxPermSize 已被删除。原因是永久代从热点堆中被移除并被转移到本地内存。所以为了删除这条消息,编辑  MAVEN_OPTS  环境用户变量:

Java 7

MAVEN_OPTS -Xmx512m -XX:MaxPermSize=128m

Java 8

MAVEN_OPTS -Xmx512m

所以这个警告正常

 

 

 

 

  相关解决方案