当我更改网络设备状态时,我的Java应用程序崩溃(例如WiFi禁用 - >启用)。事件查看器记录应用程序错误事件ID 1000.我比较了java源代码,它们是相同的。
Log Name: Application
Source: Application Error
Date: 04/10/2016 16:29:54
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: LAPTOP22470825
Description:
Faulting application name: java.exe, version: 6.0.430.1, time stamp: 0x51308a12
Faulting module name: jvm.dll, version: 20.14.0.1, time stamp: 0x5130b042
Exception code: 0xc0000005
Fault offset: 0x0009f9c3
Faulting process ID: 0x758
Faulting application start time: 0x01d21e53cfd564aa
Faulting application path: C:\Program Files (x86)\Java\jre6\bin\java.exe
Faulting module path: C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
Report ID: 65c2cfeb-8a47-11e6-8335-0023564c8003
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2016-10-04T15:29:54.000000000Z" />
<EventRecordID>12906</EventRecordID>
<Channel>Application</Channel>
<Computer>LAPTOP22470825</Computer>
<Security />
</System>
<EventData>
<Data>java.exe</Data>
<Data>6.0.430.1</Data>
<Data>51308a12</Data>
<Data>jvm.dll</Data>
<Data>20.14.0.1</Data>
<Data>5130b042</Data>
<Data>c0000005</Data>
<Data>0009f9c3</Data>
<Data>758</Data>
<Data>01d21e53cfd564aa</Data>
<Data>C:\Program Files (x86)\Java\jre6\bin\java.exe</Data>
<Data>C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll</Data>
<Data>65c2cfeb-8a47-11e6-8335-0023564c8003</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
我应该在哪里寻找这个问题的解决方案?是否存储了更多可读日志?
问候
答案 0 :(得分:0)
您可以尝试的一件事是看它是否是由即时编译引起的。如果是这样,那么在IBM JVM上使用命令行java选项-Xnojit,或者在此处列出的其他JVM选项:IS there a way to turn off JIT compiler and is there a performance impact by doing so?
我认为-Xint可能适用于Oracle和IBM。
可能存在其他日志,通常称为转储。对于IBM,您可以根据以下信息找到它们:http://www-01.ibm.com/support/docview.wss?uid=swg27007948 或者http://www.ibm.com/support/knowledgecenter/SSYKE2_6.0.0/com.ibm.java.doc.diagnostics.60/diag/tools/tools_intro.html
对于Oracle,http://www.oracle.com/technetwork/java/javase/tools-141261.html 第4节关于系统崩溃。