且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法写入核心转储.核心转储已被禁用

更新时间:2022-03-25 00:28:25

我遇到了同样的问题.

因为,错误本身表明 -

As, the error itself suggests -

无法写入核心转储.核心转储已被禁用.要启用核心转储,请在再次启动 Java 之前尝试 ulimit -c unlimited

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try ulimit -c unlimited before starting Java again

ulimit 获取和设置用户限制.有关 ulimit 的更多信息,请执行 -

ulimit gets and sets user limits. For more info on ulimit do -

man ulimit

所以,打开一个终端并运行 -

So, open a terminal and run -

ulimit -c unlimited

这应该可以解决问题.要检查更改是否成功,请运行 -

This should solve the problem. To check if the change was successful, run -

ulimit -c -l

这应该给你一个输出如下 -

This should give you an output as follows -

core file size          (blocks, -c) unlimited
max locked memory       (kbytes, -l) 64

如果问题仍然存在,请参阅这个来自askUbuntu.

If the problem persists refer to this and this from askUbuntu.