打开终端 打开终端/usr/libexec/java_home -V 位置: /Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home 进入目录: cd /Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/bin 启动jvisualvm jvisualvm