系统资源限制

Java™ 虚拟机( VM )可能因可用系统资源不足而无法生成转储文件。

可以在 VM 发出的 JVMDUMP012E 消息中识别该故障,例如:
JVMDUMP032I JVM requested System dump using '/home/test/core.20090302.104740.
2171156.0001.dmp' in response to an event
JVMDUMP012E Error in System dump: cannot find core file: "No such file or 
directory".
如果您看到此消息,请检查 ulimit -Hc 的设置是否足够高。

检查环境是否配置为允许 VM 正确生成转储文件。 必须配置系统转储代理程序以便以一个目录为目标。 运行 Java 应用程序的用户和用户所在的组都必须具有该目录的读写许可权。 可使用 IBM_COREDIR 环境变量设置。

在某些情况下,VM 可能仍无法生成转储。 例如,如果在获取转储文件时没有足够的可用内存,您将会看到以下消息:
JVMDUMP006I Processing dump event "gpf", detail "" - please wait.
JVMDUMP032I JVM requested System dump using '/home/test/xa64/core.20090227.063319.
1343.0001.dmp' in response to an event
JVMDUMP012E Error in System dump: insufficient system resources to generate dump, 
errno=12 "Cannot allocate memory"

在这种情况下,请设置 -Xrs:sync 选项。 此信息可以帮助您禁用 VM 转储代理程序,转而将操作系统配置为生成系统转储文件。