tomcat运行一段时间,系统就会自动宕机,日志中报的错误如文章内容所示。java应用程序调用了matalab的方法。调试了好久,跪求大神相助。
思与悟 2016-01-14 04:41:28 #
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000075a3772d, pid=3672, tid=3332
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [libmx.dll+0x1772d]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x000000000de7d800): JavaThread "QuartzScheduler_Worker-8" [_thread_in_native, id=3332, stack
(0x0000000011770000,0x0000000011870000)]
siginfo: ExceptionCode=0xc0000005, writing address 0x0000000000000024
Registers:
RAX=0x0000000000000000, RBX=0x000007ffffdf5de0, RCX=0x000007ffffdf5de0, RDX=0x0000000000000000
RSP=0x000000001186eb98, RBP=0x000000001186ecf0, RSI=0x00000000a1855928, RDI=0x000007feef052000
R8 =0x0000000000000000, R9 =0x000000000efd7710, R10=0x0000000000000000, R11=0x000000001186ebb0
R12=0x0000000000000000, R13=0x00000000a0a72448, R14=0x000000001186ece0, R15=0x000000000de7d800
RIP=0x0000000075a3772d, EFLAGS=0x0000000000010246
Top of Stack: (sp=0x000000001186eb98)
0x000000001186eb98: 0000000075a33e0c 0000000000000000
0x000000001186eba8: 000000000de7d800 000007ffffdf5de0
0x000000001186ebb8: 000007fef87743b5 000007feef052000
Register to memory mapping:
RAX=0x0000000000000000 is an unknown value
RBX=0x000007ffffdf5de0 is an unknown value
RCX=0x000007ffffdf5de0 is an unknown value
RDX=0x0000000000000000 is an unknown value
RSP=0x000000001186eb98 is pointing into the stack for thread: 0x000000000de7d800
RBP=0x000000001186ecf0 is pointing into the stack for thread: 0x000000000de7d800
RSI=0x00000000a1855928 is an oop
java.util.HashMap
- klass: 'java/util/HashMap'
RDI=0x000007feef052000 is an unknown value
R8 =0x0000000000000000 is an unknown value
R9 =0x000000000efd7710 is an unknown value
R10=0x0000000000000000 is an unknown value
Stack: [0x0000000011770000,0x0000000011870000], sp=0x000000001186eb98, free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libmx.dll+0x1772d]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J com.mathworks.toolbox.javabuilder.internal.MWMCR.mxDestroyArray(Lcom/mathworks/toolbox/javabuilder/internal/NativePtr;)V
J sun.reflect.GeneratedMethodAccessor23.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
J com.mathworks.toolbox.javabuilder.internal.MWMCR$1.run()V
J com.mathworks.toolbox.javabuilder.MWArray.disposeArray(Ljava/lang/Object;)V
J bkccm.cfds.service.spring.AlermForecastServiceImpl.forecastProcess()V
j sun.reflect.GeneratedMethodAccessor53.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+36
J sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+57
j org.springframework.util.MethodInvoker.invoke()Ljava/lang/Object;+44
j org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal
(Lorg/quartz/JobExecutionContext;)V+4
j org.springframework.scheduling.quartz.QuartzJobBean.execute(Lorg/quartz/JobExecutionContext;)V+59
j org.quartz.core.JobRunShell.run()V+241
J org.quartz.simpl.SimpleThreadPool$WorkerThread.run()V
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x000000000e405000 JavaThread "com.google.common.base.internal.Finalizer" daemon [_thread_blocked, id=3012, stack
(0x000000001a610000,0x000000001a710000)]
0x000000000e403800 JavaThread "EventMgr Dispatcher" daemon [_thread_in_native, id=3404, stack
Other Threads:
0x000000000a01b800 VMThread [stack: 0x000000000be30000,0x000000000bf30000] [id=1060]
0x000000000af03800 WatcherThread [stack: 0x000000000d270000,0x000000000d370000] [id=4764]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
PSYoungGen total 23040K, used 14825K [0x00000000e0300000, 0x00000000e1c00000, 0x0000000100000000)
eden space 20480K, 62% used [0x00000000e0300000,0x00000000e0f6e768,0x00000000e1700000)
from space 2560K, 81% used [0x00000000e1980000,0x00000000e1b8c010,0x00000000e1c00000)
to space 2560K, 0% used [0x00000000e1700000,0x00000000e1700000,0x00000000e1980000)
ParOldGen total 65024K, used 17276K [0x00000000a0a00000, 0x00000000a4980000, 0x00000000e0300000)
object space 65024K, 26% used [0x00000000a0a00000,0x00000000a1adf1e8,0x00000000a4980000)
PSPermGen total 42496K, used 42095K [0x000000009b800000, 0x000000009e180000, 0x00000000a0a00000)
object space 42496K, 99% used [0x000000009b800000,0x000000009e11bee0,0x000000009e180000)
Card table byte_map: [0x0000000005920000,0x0000000005c50000] byte_map_base: 0x0000000005444000
Polling page: 0x0000000000430000
Code Cache [0x0000000002920000, 0x0000000002ef0000, 0x0000000005920000)
total_blobs=1861 nmethods=1273 adapters=547 free_code_cache=43329Kb largest_free_block=44288896
Compilation events (10 events):
Event: 132736.756 Thread 0x000000000aeec800 1343 sun.nio.cs.StreamDecoder::implRead (243 bytes)
Event: 132736.766 Thread 0x000000000aeec800 nmethod 1343 0x0000000002ec4fd0 code [0x0000000002ec51c0, 0x0000000002ec5ca0]
Event: 140106.538 Thread 0x000000000aeeb000 1344 % ! org.springframework.beans.AbstractPropertyAccessor::setPropertyValues
$ContainerBackgroundProcessor::run @ 0 (88 bytes)
Event: 145631.035 Thread 0x000000000aeec800 nmethod 1347% 0x0000000002edc490 code [0x0000000002edc640, 0x0000000002edca20]
GC Heap History (10 events):
Event: 241133.713 GC heap before
{Heap before GC invocations=1606 (full 67):
PSYoungGen total 23040K, used 22656K [0x00000000e0300000, 0x00000000e1c00000, 0x0000000100000000)
eden space 20480K, 100% used [0x00000000e0300000,0x00000000e1700000,0x00000000e1700000)
from space 2560K, 85% used [0x00000000e1980000,0x00000000e1ba0020,0x00000000e1c00000)
to space 2560K, 0% used [0x00000000e1700000,0x00000000e1700000,0x00000000e1980000)
ParOldGen total 65024K, used 17680K [0x00000000a0a00000, 0x00000000a4980000, 0x00000000e0300000)
object space 65024K, 27% used [0x00000000a0a00000,0x00000000a1b44240,0x00000000a4980000)
PSPermGen total 42496K, used 42095K [0x000000009b800000, 0x000000009e180000, 0x00000000a0a00000)
object space 42496K, 99% used [0x000000009b800000,0x000000009e11bee0,0x000000009e180000)
Deoptimization events (10 events):
Event: 28859.680 Thread 0x000000000fc5e800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x0000000002d09a0c
Dynamic libraries:
\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_08e61857a83bc251\MSVCR90.dll
0x000007fefc6a0000 - 0x000007fefc6ad000 D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\bin\win64\nativedl.dll
0x00000000159c0000 - 0x0000000015b6d000 D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\bin\win64\libmwfl.dll
0x0000000180000000 - 0x000000018000b000 D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\bin
vc90-mt-1_44.dll
0x000000007a560000 - 0x000000007a569000 D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\bin\win64\boost_system-vc90-
0x0000000074460000 - 0x000000007451f000 D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\bin\win64\libut.dll
0x0000000070810000 - 0x0000000070823000 D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\bin\win64\icuio44.dll
0x000007fef19d0000 - 0x000007fef1af5000 C:\Windows\system32\dbghelp.dll
*********************************************************************************************************************
0x0000000075a20000 - 0x0000000075af3000 D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\bin\win64\libmx.dll
**********************************************************************************************************************
0x000000000bf50000 - 0x000000000bf79000 D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\bin\win64\tbbmalloc.dll
0x000000007a210000 - 0x000000007a228000 D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\bin\win64\zlib1.d
0x000000000c770000 - 0x000000000c780000 D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\bin\win64\boost_iostreams-
vc90-mt-1_44.dll
0x000000000cc90000 - 0x000000000ccd7000 D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\bin
\win64\boost_serialization-vc90-mt-1_44.dll
0x000007fefe150000 - 0x000007fefeed8000 C:\Windows\system32\SHELL32.dll
\jdk1.7.0_45\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\MySQL\MySQL Server5.5\bin;D:\Program Files\MATLAB\MATLAB Compiler Runtime\v80\runtime\win64;D:\Program Files\MATLAB
\R2012b\runtime\win64;D:\Program Files\MATLAB\R2012b\bin;D:\Program Files\TortoiseSVN\bin;D:\bin\apache-maven-3.3.3\bin;C:\Program
--------------- S Y S T E M ---------------
OS: Windows 7 , 64 bit Build 7601 Service Pack 1
CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 42 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3,
sse4.1, sse4.2, popcnt, avx, aes, ht, tsc, tscinvbit
Memory: 4k page, physical 6248572k(2828748k free), swap 12495300k(8418476k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (24.45-b08) for windows-amd64 JRE (1.7.0_45-b18), built on Oct 8 2013 05:47:22 by
"java_re" with unknown MS VC++:1600
time: Wed Jan 13 04:54:00 2016
elapsed time: 241573 seconds