1、工具包下载:
直接下载好zip包,放到一个目录,解压即可
可以在官方文档给的路径下载
链接:https://arthas.aliyun.com/doc/
2、本地IDEA起个Java死循环的进程:
import java.util.HashSet;
import java.util.Set;
import static java.lang.Thread.sleep;
public class Math {
public static final int num=100;
public static String name="sddfefefffefefefefeffefefeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
public static void main(String[] args) {
int a=1;
int b=1;
Math math=new Math();
int c=(math.add(a,b)+1)*10;
Set<Math> map=new HashSet<>();
while (true)
{
map.add(new Math());
try {
sleep(1);