如何在 Windows 的 Java 中启用小型转储

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18459037/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 01:48:37  来源:igfitidea点击:

How to enable minidumps in Java for Windows

java

提问by Alex

I keep getting and seeing this message

我不断收到并看到此消息

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

无法写入核心转储。默认情况下,客户端版本的 Windows 上不启用小型转储

So I need to know

所以我需要知道

  1. How to enable minidumps in Java (on a Windows machine)
  2. (optional) How interpret a minidump once I have it
  1. 如何在 Java 中启用小型转储(在 Windows 机器上)
  2. (可选)一旦我拥有它,如何解释小型转储

I tried to find an answer for those 2 questions but what I found are very specific answers for niche questions and that did not satisfied me.

我试图找到这两个问题的答案,但我发现的是针对小众问题的非常具体的答案,这并没有让我满意。

回答by David George

You will need the following JVM option:

您将需要以下 JVM 选项:

-XX:+CreateMinidumpOnCrash

Then the minidump will be as large as the memory used by your JVM.

然后小型转储将与您的 JVM 使用的内存一样大。