JVM
问题
查看jvm的所有参数,要怎么做?
- 找到pid。
jps/ps -ef | grep java - 查看参数。
jinfo -flags ${pid}
Error attaching to process: java.lang.RuntimeException: can't determine target's VM version : field "_reserve_for_allocation_prefetch" not found in type Abstract_VM_Version
以上错误是由于版本不兼容导致的。(eg:使用JDK11启动的服务,却用的JDK8中的命令查看)

浙公网安备 33010602011771号