https://visualvm.github.io/index.html
查看插件详情
查看插件
找到自己对应的Java版本
2. 在 Java VisualVM中安装插件选择自己想要的插件进行下载
测试程序
package com.framework.jvm;
import java.util.ArrayList;
public class TestJvm {
byte[] bytes = new byte[102400];
public static void main(String[] args) throws InterruptedException {
ArrayList testJvmArrayList = new ArrayList<>();
while (true){
testJvmArrayList.add(new TestJvm());
Thread.sleep(1);
}
}
}
查看效果



