jdk1.8.0_171,在应用启动的时候,配置如下jvm参数,会出现警告信息
-XX:+UseFastAccessorMethods
- 含义:get,set 方法转成本地代码(对于jvm来说是冗余代码,jvm将进行优化)
- 说明: UseFastAccessorMethods option is harmful and has been removed in JDK 9. You need to delete this option from run configuration.
-XX:+UseConcMarkSweepGC
- 含义: 使用CMS GC,默认新生代会使用ParNew
- 说明:Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
-XX:+PrintGCDetails
- 含义:GC回收信息详解
- 说明:-XX:+PrintGCDetails is deprecated. Will use -Xlog:gc* instead.,即需要配置成这样:-Xlog:gc:gc.log
-XX:+PrintGCDateStamps
- 含义:把gc日志带上时间戳
- 说明:Unrecognized VM option ‘PrintGCDateStamps’