命令:
java -XX:+PrintCommandLineFlags -version
1,查看测试环境:
-XX:InitialHeapSize=67108864 -XX:MaxHeapSize=1073741824 -XX:+PrintCommandLineFlags -XX:+UseCompressedClassPointers -XX:+UseCompressedOops
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
image.png
2,查看生产环境
image.png image.png
3,查看自己阿里云上运行的demo
image.png
注:useCompressedClassPointers 使用压缩的类指针
UseCompressedOops 使用压缩的普通对象指针
网友评论