当前位置: 技术问答>linux和unix
求助:JVM异常崩溃
来源: 互联网 发布时间:2016-02-25
本文导语: 我的JAVA程序在linux下运行时经常异常崩溃了,但另一台linux下却一切正常,检查日志文件提示如下: # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0xb7a7a117, pid=10087, tid=2857761680 # #...
我的JAVA程序在linux下运行时经常异常崩溃了,但另一台linux下却一切正常,检查日志文件提示如下:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xb7a7a117, pid=10087, tid=2857761680
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode)
# Problematic frame:
# V [libjvm.so+0x2cd117]
#
# An error report file with more information is saved as hs_err_pid10087.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
hs_err_pid10087.log文件的内容如下:
--------------- T H R E A D ---------------
Current thread (0x08963a38): VMThread [id=10089]
siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x0003b68a
Registers:
EAX=0x0003b62a, EBX=0xb7b3a42c, ECX=0xab5f2b78, EDX=0xaf09c1c0
ESP=0xaa55e960, EBP=0xaa55e988, ESI=0xab5f2b78, EDI=0x08918fe0
EIP=0xb7a7a117, CR2=0x0003b68a, EFLAGS=0x00210283
Top of Stack: (sp=0xaa55e960)
0xaa55e960: af09c1c0 ab5f2b78 ab5f2b78 ab5f2b78
0xaa55e970: b7b48444 ab92c708 abfec718 b7b3a42c
0xaa55e980: 00000001 aa55eac0 aa55e9a8 b78fb27f
0xaa55e990: 08918fe0 aa55e9a8 aa00ffff b28e6988
0xaa55e9a0: 088f9bf0 b28e6988 aa55e9c8 b78fa7c8
0xaa55e9b0: aa55e9e0 08918fe0 aa55e9e8 b7b3a42c
0xaa55e9c0: 088f9bf0 088f9bf0 aa55e9f8 b78f9d1e
0xaa55e9d0: 08918ec0 aa55e9e0 00000001 b7a63305
Instructions: (pc=0xb7a7a117)
0xb7a7a107: fc eb ab 8b 46 04 51 51 8d 50 08 8b 40 08 56 52
0xb7a7a117: ff 50 60 83 c4 10 8d 34 86 3b 75 ec 72 e5 8b 57
Stack: [0xaa4df000,0xaa560000), sp=0xaa55e960, free space=510k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x2cd117]
V [libjvm.so+0x14e27f]
V [libjvm.so+0x14d7c8]
V [libjvm.so+0x14cd1e]
V [libjvm.so+0x1446c2]
V [libjvm.so+0x142c77]
V [libjvm.so+0x143c9d]
V [libjvm.so+0x14d20d]
V [libjvm.so+0x2f5f2e]
V [libjvm.so+0x14135f]
V [libjvm.so+0xfd4be]
V [libjvm.so+0x1415f2]
V [libjvm.so+0x333384]
V [libjvm.so+0x3330b6]
V [libjvm.so+0x3326c7]
V [libjvm.so+0x332935]
V [libjvm.so+0x3324a0]
V [libjvm.so+0x290748]
C [libpthread.so.0+0x52db]
VM_Operation (0xa91265ec): generation collection for allocation, mode: safepoint, requested by thread 0xa9447e18
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x08a3c2d0 JavaThread "TP-Monitor" daemon [_thread_blocked, id=10131]
0x08a3b3f8 JavaThread "TP-Processor4" daemon [_thread_in_native, id=10130]
0x08a3a680 JavaThread "TP-Processor3" daemon [_thread_blocked, id=10129]
0x08a35018 JavaThread "TP-Processor2" daemon [_thread_blocked, id=10128]
0x08a34a50 JavaThread "TP-Processor1" daemon [_thread_blocked, id=10127]
0xa9468560 JavaThread "http-8080-Monitor" [_thread_blocked, id=10126]
0xa9467798 JavaThread "http-8080-Processor25" daemon [_thread_in_native, id=10125]
0xa94669d0 JavaThread "http-8080-Processor24" daemon [_thread_blocked, id=10124]
0xa9465c08 JavaThread "http-8080-Processor23" daemon [_thread_blocked, id=10123]
0xa9464e40 JavaThread "http-8080-Processor22" daemon [_thread_blocked, id=10122]
0xa94640b0 JavaThread "http-8080-Processor21" daemon [_thread_blocked, id=10121]
0xa94632e8 JavaThread "http-8080-Processor20" daemon [_thread_blocked, id=10120]
0xa9462520 JavaThread "http-8080-Processor19" daemon [_thread_blocked, id=10119]
0xa9461758 JavaThread "http-8080-Processor18" daemon [_thread_blocked, id=10118]
0xa9460990 JavaThread "http-8080-Processor17" daemon [_thread_blocked, id=10117]
0xa945f380 JavaThread "http-8080-Processor16" daemon [_thread_blocked, id=10116]
0xa94103b8 JavaThread "http-8080-Processor15" daemon [_thread_blocked, id=10115]
0xa940f628 JavaThread "http-8080-Processor14" daemon [_thread_blocked, id=10114]
0xa940e860 JavaThread "http-8080-Processor13" daemon [_thread_blocked, id=10113]
0xa940da98 JavaThread "http-8080-Processor12" daemon [_thread_blocked, id=10112]
0xa940ccd0 JavaThread "http-8080-Processor11" daemon [_thread_blocked, id=10111]
0xa947a208 JavaThread "http-8080-Processor10" daemon [_thread_blocked, id=10110]
0xa9479380 JavaThread "http-8080-Processor9" daemon [_thread_blocked, id=10109]
0xa94785f0 JavaThread "http-8080-Processor8" daemon [_thread_blocked, id=10108]
0xa9a3fa98 JavaThread "http-8080-Processor7" daemon [_thread_blocked, id=10107]
0xa9a3ecd0 JavaThread "http-8080-Processor6" daemon [_thread_blocked, id=10106]
0xa9a3df20 JavaThread "http-8080-Processor5" daemon [_thread_blocked, id=10105]
0xa9ac3ee0 JavaThread "http-8080-Processor4" daemon [_thread_blocked, id=10104]
0xa9ae4fc8 JavaThread "http-8080-Processor3" daemon [_thread_blocked, id=10103]
0xa9433000 JavaThread "http-8080-Processor2" daemon [_thread_blocked, id=10102]
0xa94070f8 JavaThread "http-8080-Processor1" daemon [_thread_blocked, id=10101]
0xa9afa850 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=10100]
0x08988580 JavaThread "Prototyper" daemon [_thread_blocked, id=10099]
0xa94a78a0 JavaThread "HouseKeeper" daemon [_thread_blocked, id=10098]
0xa9447e18 JavaThread "Timer-0" daemon [_thread_blocked, id=10097]
0xa9acbe58 JavaThread "Thread-1" [_thread_in_native, id=10096]
0x089743c0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=10094]
0x08972f88 JavaThread "CompilerThread0" daemon [_thread_blocked, id=10093]
0x089720b8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10092]
0x08968920 JavaThread "Finalizer" daemon [_thread_blocked, id=10091]
0x08966b38 JavaThread "Reference Handler" daemon [_thread_blocked, id=10090]
0x088fd118 JavaThread "main" [_thread_in_native, id=10087]
Other Threads:
=>0x08963a38 VMThread [id=10089]
0x08975978 WatcherThread [id=10095]
VM state:at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x088fc5b0/0x088fc5d8] Threads_lock - owner thread: 0x08963a38
[0x088fca00/0x088fca18] Heap_lock - owner thread: 0xa9447e18
Heap
def new generation total 2240K, used 0K [0xaa5e0000, 0xaa840000, 0xaaac0000)
--------------- S Y S T E M ---------------
OS:CentOS release 5 (Final)
uname:Linux 2.6.18-8.1.4.el5 #1 SMP Thu May 17 03:26:03 EDT 2007 i686
libc:glibc 2.5 NPTL 2.5
rlimit: STACK 10240k, CORE 0k, NPROC 32759, NOFILE 1024, AS infinity
load average:0.00 0.00 0.00
CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, ht
Memory: 4k page, physical 2075216k(1071680k free), swap 2096440k(2096440k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_12-b04) for linux-x86, built on May 2 2007 03:26:22 by java_re with gcc 3.2.1-7a (J2SE release)
还请高手赐教,谢谢。
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0xb7a7a117, pid=10087, tid=2857761680
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode)
# Problematic frame:
# V [libjvm.so+0x2cd117]
#
# An error report file with more information is saved as hs_err_pid10087.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
hs_err_pid10087.log文件的内容如下:
--------------- T H R E A D ---------------
Current thread (0x08963a38): VMThread [id=10089]
siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x0003b68a
Registers:
EAX=0x0003b62a, EBX=0xb7b3a42c, ECX=0xab5f2b78, EDX=0xaf09c1c0
ESP=0xaa55e960, EBP=0xaa55e988, ESI=0xab5f2b78, EDI=0x08918fe0
EIP=0xb7a7a117, CR2=0x0003b68a, EFLAGS=0x00210283
Top of Stack: (sp=0xaa55e960)
0xaa55e960: af09c1c0 ab5f2b78 ab5f2b78 ab5f2b78
0xaa55e970: b7b48444 ab92c708 abfec718 b7b3a42c
0xaa55e980: 00000001 aa55eac0 aa55e9a8 b78fb27f
0xaa55e990: 08918fe0 aa55e9a8 aa00ffff b28e6988
0xaa55e9a0: 088f9bf0 b28e6988 aa55e9c8 b78fa7c8
0xaa55e9b0: aa55e9e0 08918fe0 aa55e9e8 b7b3a42c
0xaa55e9c0: 088f9bf0 088f9bf0 aa55e9f8 b78f9d1e
0xaa55e9d0: 08918ec0 aa55e9e0 00000001 b7a63305
Instructions: (pc=0xb7a7a117)
0xb7a7a107: fc eb ab 8b 46 04 51 51 8d 50 08 8b 40 08 56 52
0xb7a7a117: ff 50 60 83 c4 10 8d 34 86 3b 75 ec 72 e5 8b 57
Stack: [0xaa4df000,0xaa560000), sp=0xaa55e960, free space=510k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x2cd117]
V [libjvm.so+0x14e27f]
V [libjvm.so+0x14d7c8]
V [libjvm.so+0x14cd1e]
V [libjvm.so+0x1446c2]
V [libjvm.so+0x142c77]
V [libjvm.so+0x143c9d]
V [libjvm.so+0x14d20d]
V [libjvm.so+0x2f5f2e]
V [libjvm.so+0x14135f]
V [libjvm.so+0xfd4be]
V [libjvm.so+0x1415f2]
V [libjvm.so+0x333384]
V [libjvm.so+0x3330b6]
V [libjvm.so+0x3326c7]
V [libjvm.so+0x332935]
V [libjvm.so+0x3324a0]
V [libjvm.so+0x290748]
C [libpthread.so.0+0x52db]
VM_Operation (0xa91265ec): generation collection for allocation, mode: safepoint, requested by thread 0xa9447e18
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x08a3c2d0 JavaThread "TP-Monitor" daemon [_thread_blocked, id=10131]
0x08a3b3f8 JavaThread "TP-Processor4" daemon [_thread_in_native, id=10130]
0x08a3a680 JavaThread "TP-Processor3" daemon [_thread_blocked, id=10129]
0x08a35018 JavaThread "TP-Processor2" daemon [_thread_blocked, id=10128]
0x08a34a50 JavaThread "TP-Processor1" daemon [_thread_blocked, id=10127]
0xa9468560 JavaThread "http-8080-Monitor" [_thread_blocked, id=10126]
0xa9467798 JavaThread "http-8080-Processor25" daemon [_thread_in_native, id=10125]
0xa94669d0 JavaThread "http-8080-Processor24" daemon [_thread_blocked, id=10124]
0xa9465c08 JavaThread "http-8080-Processor23" daemon [_thread_blocked, id=10123]
0xa9464e40 JavaThread "http-8080-Processor22" daemon [_thread_blocked, id=10122]
0xa94640b0 JavaThread "http-8080-Processor21" daemon [_thread_blocked, id=10121]
0xa94632e8 JavaThread "http-8080-Processor20" daemon [_thread_blocked, id=10120]
0xa9462520 JavaThread "http-8080-Processor19" daemon [_thread_blocked, id=10119]
0xa9461758 JavaThread "http-8080-Processor18" daemon [_thread_blocked, id=10118]
0xa9460990 JavaThread "http-8080-Processor17" daemon [_thread_blocked, id=10117]
0xa945f380 JavaThread "http-8080-Processor16" daemon [_thread_blocked, id=10116]
0xa94103b8 JavaThread "http-8080-Processor15" daemon [_thread_blocked, id=10115]
0xa940f628 JavaThread "http-8080-Processor14" daemon [_thread_blocked, id=10114]
0xa940e860 JavaThread "http-8080-Processor13" daemon [_thread_blocked, id=10113]
0xa940da98 JavaThread "http-8080-Processor12" daemon [_thread_blocked, id=10112]
0xa940ccd0 JavaThread "http-8080-Processor11" daemon [_thread_blocked, id=10111]
0xa947a208 JavaThread "http-8080-Processor10" daemon [_thread_blocked, id=10110]
0xa9479380 JavaThread "http-8080-Processor9" daemon [_thread_blocked, id=10109]
0xa94785f0 JavaThread "http-8080-Processor8" daemon [_thread_blocked, id=10108]
0xa9a3fa98 JavaThread "http-8080-Processor7" daemon [_thread_blocked, id=10107]
0xa9a3ecd0 JavaThread "http-8080-Processor6" daemon [_thread_blocked, id=10106]
0xa9a3df20 JavaThread "http-8080-Processor5" daemon [_thread_blocked, id=10105]
0xa9ac3ee0 JavaThread "http-8080-Processor4" daemon [_thread_blocked, id=10104]
0xa9ae4fc8 JavaThread "http-8080-Processor3" daemon [_thread_blocked, id=10103]
0xa9433000 JavaThread "http-8080-Processor2" daemon [_thread_blocked, id=10102]
0xa94070f8 JavaThread "http-8080-Processor1" daemon [_thread_blocked, id=10101]
0xa9afa850 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=10100]
0x08988580 JavaThread "Prototyper" daemon [_thread_blocked, id=10099]
0xa94a78a0 JavaThread "HouseKeeper" daemon [_thread_blocked, id=10098]
0xa9447e18 JavaThread "Timer-0" daemon [_thread_blocked, id=10097]
0xa9acbe58 JavaThread "Thread-1" [_thread_in_native, id=10096]
0x089743c0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=10094]
0x08972f88 JavaThread "CompilerThread0" daemon [_thread_blocked, id=10093]
0x089720b8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10092]
0x08968920 JavaThread "Finalizer" daemon [_thread_blocked, id=10091]
0x08966b38 JavaThread "Reference Handler" daemon [_thread_blocked, id=10090]
0x088fd118 JavaThread "main" [_thread_in_native, id=10087]
Other Threads:
=>0x08963a38 VMThread [id=10089]
0x08975978 WatcherThread [id=10095]
VM state:at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x088fc5b0/0x088fc5d8] Threads_lock - owner thread: 0x08963a38
[0x088fca00/0x088fca18] Heap_lock - owner thread: 0xa9447e18
Heap
def new generation total 2240K, used 0K [0xaa5e0000, 0xaa840000, 0xaaac0000)
--------------- S Y S T E M ---------------
OS:CentOS release 5 (Final)
uname:Linux 2.6.18-8.1.4.el5 #1 SMP Thu May 17 03:26:03 EDT 2007 i686
libc:glibc 2.5 NPTL 2.5
rlimit: STACK 10240k, CORE 0k, NPROC 32759, NOFILE 1024, AS infinity
load average:0.00 0.00 0.00
CPU:total 2 (cores per cpu 1, threads per core 2) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, ht
Memory: 4k page, physical 2075216k(1071680k free), swap 2096440k(2096440k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_12-b04) for linux-x86, built on May 2 2007 03:26:22 by java_re with gcc 3.2.1-7a (J2SE release)
还请高手赐教,谢谢。
|
估计你的内存条坏了。
因为报si_signo=11,信号11错误通称分段错误(segmentation fault),意思是程序进入了没有被分配给它的内存位置。
换一个内存条试试。
因为报si_signo=11,信号11错误通称分段错误(segmentation fault),意思是程序进入了没有被分配给它的内存位置。
换一个内存条试试。
|
重新设置下环境变量...
|
顶一下.
|
顶一下.
|
好像没那么简单,呵呵.
|
我也想了解,谢谢LZ.