JVM

问题

查看jvm的所有参数,要怎么做?

  1. 找到pid。jps / ps -ef | grep java
  2. 查看参数。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中的命令查看)

posted @ 2023-10-05 21:43  chengjunjie  阅读(28)  评论(0)    收藏  举报