English 中文(简体)
我如何调查联保部队坠毁的原因?
原标题:How do I investigate the cause of a JVM crash?

一天前,经过几个月的正常工作之后,我们的 j开始偶尔发生以下错误:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (safepoint.cpp:247), pid=2075, tid=140042095163136
#  guarantee(PageArmed == 0) failed: invariant
#
# JRE version: 6.0_23-b05
# Java VM: Java HotSpot(TM) 64-Bit Server VM (19.0-b09 mixed mode linux-amd64 compressed oops)
# An error report file with more information is saved as:
# /var/chat/jSocketer/build/hs_err_pid2075.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

I looked in hs_err_pid2075.log and saw that there was an active thread, that processed a network communication. However there wasn t any application or environment changes done in the last few months. Also there wasn t any load growth. What can I do to understand, what is the reason of crash? Are there any common steps to investigate a jvm crash?

UPD http://www.wuala.com/ubear/public

最佳回答

The crash is in the JVM, not in external native code. However, the operation it crashed on has been initiated by and external DLL.

h子中这一条线解释了坠毁行动:

VM_Operation (0x00007f5e16e35450): GetAllStackTraces, mode: safepoint, requested by thread 0x0000000040796000

如今,read0x000040796000

0x0000000040796000 JavaThread "YJPAgent-Telemetry" daemon [_thread_blocked, id=2115, stack(0x00007f5e16d36000,0x00007f5e16e37000)]

这是贵方创造的read子。 “Get AllStackTraces”是名人为了进行取样而需要呼吁的。 如果你去掉头盔,就不会发生坠毁事件。

参考 说出造成坠毁的原因是不可能的,但你可以尝试: 移除所有-XX CM参数, -verbose:gc 和 debugging RV参数。 它们可能会干扰证书的定性接口。

Update

Code that calls java.lang.Thread#getAllStackTraces() or java.lang.Thread#getStackTrace() may trigger the same crash

问题回答

The two times I ve witnessed recurring JVM crashes were both due to hardware failure, namely RAM. Running a memtest utility is the first thing I d try.

我可以从错误报告中看到,你有YJP agents,以了解你是否能够继续照搬坠机。

一般来说,事故险坠毁很难诊断。 可能发生这种情况的原因是,一些日本民族阵线的法典或民族解放军本身有点。 如果你怀疑后者的话,也许应该向Oracle提交一份标书。

不管怎样,我还是建议提升到,以确保它不会发现已经确定的一个问题。 在撰写本报告时,目前的释放情况是Java 6 。

如果你不说会直接造成这种情况的任何东西(这基本上是指使用本地法典或称为本地法典的图书馆),那么它就几乎总是 s在证书或硬件问题上。

If it s been running fine for ages and has now started to crash then it seems to me like the hardware issue is the most likely of the two. Can you run it on another machine to rule out the issue? Of course, it definitely wouldn t hurt to upgrade to the latest Java update as well.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签