如何在 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
How to enable minidumps in Java for Windows
提问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
所以我需要知道
- How to enable minidumps in Java (on a Windows machine)
- (optional) How interpret a minidump once I have it
- 如何在 Java 中启用小型转储(在 Windows 机器上)
- (可选)一旦我拥有它,如何解释小型转储
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 使用的内存一样大。
To interpret the minidump you can install the free Visual Studio C++ Express edition for your platform: http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx
You will also need the symbols for the DLLs that you are interested in. There is some information on using the Microsoft Symbol server here: http://support.microsoft.com/kb/311503
You would also need the symbol files for the JVM.
要解释小型转储,您可以为您的平台安装免费的 Visual Studio C++ Express 版本:http: //www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx
您还需要您感兴趣的 DLL 的符号。这里有一些关于使用 Microsoft 符号服务器的信息:http: //support.microsoft.com/kb/311503
您还需要 JVM 的符号文件。