jvm崩溃查询(持续关注)

来源:互联网 发布:linux curl获取返回值 编辑:程序博客网 时间:2024/06/17 14:06

前提:jvm秒崩溃,tomcat没有异常日志(挂的时间之后就没有任何日志了)

查看崩溃日志(hs_err_pid***.log),没有详细记录,非常之简练,完全没法查问题

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0x7) at pc=0x00007f0e9d052370, pid=8336, tid=139699868296960
#
# JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.65-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# v  ~StubRoutines::jlong_disjoint_arraycopy
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#


---------------  T H R E A D  ---------------


Current thread (0x00007f0e14064000):  JavaThread "http-bio-9092-exec-17188" daemon [_thread_in_Java, id=4867, stack(0x00007f0e68f66000,0x00007f0e69067000)]


siginfo: si_signo: 7 (SIGBUS), si_code: 2 (BUS_ADRERR), si_addr: 0x00007f0eb0026000


Registers:
RAX=0x00007f0eb0027000, RBX=0x00000000debadfb8, RCX=0x00000000debaf108, RDX=0xfffffffffffffe08
RSP=0x00007f0e69064a30, RBP=0x00007f0e69064a30, RSI=0x00000000debae110, RDI=0x00007f0eb0026ff8
R8 =0x0000000000001000, R9 =0x00007f0eb0018000, R10=0x00007f0e9d052a00, R11=0x000000000000e000
R12=0x0000000000000000, R13=0x0000000000001000, R14=0x00000000debaded0, R15=0x00007f0e14064000
RIP=0x00007f0e9d052370, EFLAGS=0x0000000000010282, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e


Top of Stack: (sp=0x00007f0e69064a30)
0x00007f0e69064a30:   0000000000001000 00007f0e9de6ff4e
0x00007f0e69064a40:   00000000debadfb8 00000000debaded0
0x00007f0e69064a50:   00000000debadfb8 0000100000001cdd
0x00007f0e69064a60:   00000000debae100 00000fc000001000
0x00007f0e69064a70:   00007f0e0000e000 0000000000000000
0x00007f0e69064a80:   00000000debadc28 00001000debae100
0x00007f0e69064a90:   00007f0e69064ae0 00007f0e9d6c42fc
0x00007f0e69064aa0:   000000008dc23630 00007f0e9e686d44
0x00007f0e69064ab0:   000000008b102cc0 00000000debadbd0
0x00007f0e69064ac0:   0000000000000002 00000000debadbd0
0x00007f0e69064ad0:   0000000000000001 00007f0e9f6258d0
0x00007f0e69064ae0:   000000008dc23630 00007f0e9fa7ea34
0x00007f0e69064af0:   0000000000000000 00007f0e9ed4fb30
0x00007f0e69064b00:   00000000debac368 00000000ff54c0a8
0x00007f0e69064b10:   000000008c84f8f8 00000000ff54c0a8
0x00007f0e69064b20:   00000001000224b8 00007f0e9ebdcb24
0x00007f0e69064b30:   0000002700000027 00000000debad170
0x00007f0e69064b40:   00000000debad238 00007f0e9ecb7aa4
0x00007f0e69064b50:   00000000debad200 0000000000000027
0x00007f0e69064b60:   00000000ff558000 0000000000000000
0x00007f0e69064b70:   0000000000000009 00000000000e3844
0x00007f0e69064b80:   0000000000000000 00007f0e9ed67c20
0x00007f0e69064b90:   000000008c850718 00000000debad1c8
0x00007f0e69064ba0:   00000000debac368 00000000debadbd0
0x00007f0e69064bb0:   00000000debadbb0 000000008c84f890
0x00007f0e69064bc0:   00000000debadbd0 00000000debadb30
0x00007f0e69064bd0:   ffffffffff54c1c8 00000000debadce8
0x00007f0e69064be0:   00000000debaded0 00000000debae0e0
0x00007f0e69064bf0:   000000008c3642b8 00007f0e00000001
0x00007f0e69064c00:   000000008dc31db8 00000000debaa5d0
0x00007f0e69064c10:   000000008c480ad0 00000000deaf90e0
0x00007f0e69064c20:   000000008dc23630 00007f0e9f43b2a4 


Instructions: (pc=0x00007f0e9d052370)
0x00007f0e9d052350:   da e9 4a 00 00 00 48 8b 44 d7 08 48 89 44 d1 08
0x00007f0e9d052360:   48 ff c2 75 f1 48 33 c0 c9 c3 66 0f 1f 44 00 00
0x00007f0e9d052370:   c5 fa 6f 44 d7 c8 c5 fa 7f 44 d1 c8 c5 fa 6f 4c
0x00007f0e9d052380:   d7 d8 c5 fa 7f 4c d1 d8 c5 fa 6f 54 d7 e8 c5 fa 


Register to memory mapping:


RAX=0x00007f0eb0027000 is an unknown value
RBX=0x00000000debadfb8 is an oop
sun.security.provider.MD5 
 - klass: 'sun/security/provider/MD5'
RCX=0x00000000debaf108 is an oop


有这样一句话关注一下

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

没有core dump也不好查问题。

查看当前java进程设置 cat /proc/29194/limits ,发现为0



echo ulimit -c unlimited >>/etc/profile 

source /etc/profile





原创粉丝点击