核心转储未生成

时间:2020-05-29 19:45:25

标签: linux centos coredump

我正在尝试在Java程序崩溃时生成核心转储。我按照说明启用了核心转储。我正在使用kill -s SIGSEGV PID

触发崩溃
I have enabled ulimit to unlimited

$ ulimit -c
unlimited

pattern of core file 
$ cat /proc/sys/kernel/core_pattern
/var/lib/systemd/coredump/core.%u.%e.%p

$ pwd
/var/lib/systemd/coredump

This directory is writable
$ ls -lrt core*
ls: cannot access core*: No such file or directory

I have also set suid_dumpable to 2
$ cat /proc/sys/fs/suid_dumpable
2

There is enough space available in the disk
$ df -kh .
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      100G   20G   81G  20% /

您能帮我解决这个问题吗?我正在使用CentOS Linux release 7.4.1708

0 个答案:

没有答案