jdk17版本用jmap-heap查看堆信息,报错
Error: -heap option used
Cannot connect to core dump or remote debug server. Use jhsdb jmap instead
用命令 jhsdb jmap --heap --pid 代替