运行jol-core异常,该异常消息为“进程已完成,退出代码为137(被信号9:SIGKILL中断)”

时间:2020-10-29 14:52:20

标签: java jol

我正在为这个问题而苦苦挣扎,请问您能得到什么帮助。

运行环境:

Mac Book 10.15.7 

java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)

org.openjdk.jol.jol-core:0.14

运行代码:

public class ClassHeader {
}

public class ClassHeaderTest {
    public static void main(String[] args) {
        // Viewing internal object information.
        System.out.println("Before Print...");
        System.out.println(ClassLayout.parseInstance(new ClassHeader()).toPrintable());
        System.out.println("After Print...");
    }
}

控制台输出结果

Before Print...

Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

我只是想做一个简单的测试,它导致了这个问题,请帮助我

0 个答案:

没有答案