求教:JVM偶尔挂掉,不知道是什么错?core dump文件没有

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f9cd999295b, pid=2613903, tid=140310896244480
#
# JRE version: Java(TM) SE Runtime Environment (7.0_75-b13) (build 1.7.0_75-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.75-b04 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libc.so.6+0x12195b]  nscd_gethst_r+0x54b

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

Current thread (0x00007f9c540bc800):  JavaThread "http-bio-8104-exec-88" daemon [_thread_in_native, id=2614462, stack(0x00007f9cad10f000,0x00007f9cad210000)]

siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x00007f9cdb523037

Registers:
RAX=0x0000000000000000, RBX=0x00007f9cd4152820, RCX=0x00000000ffffffff, RDX=0x000000002e316363
RSP=0x00007f9cad20cab0, RBP=0x00007f9cad20cbe0, RSI=0x00007f9cad20ccd4, RDI=0x0000000000000001
R8 =0x00007f9cad20cc90, R9 =0x00007f9cc9b0467d, R10=0x0000000000000004, R11=0x00007f9cad20d4e0
R12=0x00007f9cc9b04679, R13=0x0000000000000000, R14=0x00007f9cad20ccfa, R15=0x0000000000000026
RIP=0x00007f9cd999295b, EFLAGS=0x0000000000010206, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
  TRAPNO=0x000000000000000e

Top of Stack: (sp=0x00007f9cad20cab0)
0x00007f9cad20cab0:   00007f9cffffffff 00007f9cc9b0467d
0x00007f9cad20cac0:   0000000000000004 00007f9cad20cb40
0x00007f9cad20cad0:   00007f9cad20cb80 00007f9cad20d090
0x00007f9cad20cae0:   00007f9cad20cc90 0000000100000000
0x00007f9cad20caf0:   0000000000000400 0000000000000019
0x00007f9cad20cb00:   0001000100000002 00007f9cc9b046a7
0x00007f9cad20cb10:   0000000000000000 00007f9cad20cc90
0x00007f9cad20cb20:   0000000000000004 00007f9cad20d0d0
0x00007f9cad20cb30:   00007f9cad20d4e0 00000006ad20d490
0x00007f9cad20cb40:   0000000000000004 00007f9cad20d090
0x00007f9cad20cb50:   0000000000000400 00007f9cad20d520
0x00007f9cad20cb60:   00007f9cad20d500 00007f9cd9992e40
0x00007f9cad20cb70:   00007f9cad20d520 00007f9cad20d52c
0x00007f9cad20cb80:   0000000100000002 0000000100000019
0x00007f9cad20cb90:   0000000400000002 0000000000000001
0x00007f9cad20cba0:   00007f9cad20d500 002b6d5c00000400
0x00007f9cad20cbb0:   00007f9cad20d490 00007f9cad20d52c
0x00007f9cad20cbc0:   00007f9cad20d490 0000000000000004
0x00007f9cad20cbd0:   00007f9cad20d4e0 00007f9cad20d0d0
0x00007f9cad20cbe0:   00007f9cad20d52c 00007f9cd9974298
0x00007f9cad20cbf0:   00007f9cad20d520 00007f9cad20d52c
0x00007f9cad20cc00:   0000000200000000 00007f9cad20cc90
0x00007f9cad20cc10:   0000000000000400 00007f9cad20d090
0x00007f9cad20cc20:   0000000000000000 0000000000000000
0x00007f9cad20cc30:   0000000000000000 ffffffff00000000
0x00007f9cad20cc40:   0000000000000000 00007f9cad20d52c
0x00007f9cad20cc50:   00007f9cad20d550 00007f9cad20d490
0x00007f9cad20cc60:   00007f9cad20d520 00007f9c540bc9e8
0x00007f9cad20cc70:   00007f9c540bc800 00007f9cc9d4879d
0x00007f9cad20cc80:   00007f9cad20d520 00007f9cad20d52c
0x00007f9cad20cc90:   00007f9cad20ccd4 0000000000000000
0x00007f9cad20cca0:   00007f9cad20ccd0 0000000000000000 

Instructions: (pc=0x00007f9cd999295b)
0x00007f9cd999293b:   00 0f 85 ee 00 00 00 48 63 7d ac 48 85 ff 7e 43
0x00007f9cd999294b:   4d 8b 43 08 41 8b 14 24 31 c0 49 8b 30 83 ea 01
0x00007f9cd999295b:   80 3c 16 00 74 24 e9 ca 00 00 00 66 2e 0f 1f 84
0x00007f9cd999296b:   00 00 00 00 00 41 8b 14 84 49 8b 34 c0 83 ea 01 

Register to memory mapping:

RAX=0x0000000000000000 is an unknown value
RBX=0x00007f9cd4152820 is an unknown value
RCX=0x00000000ffffffff is an unknown value
RDX=0x000000002e316363 is an unknown value
RSP=0x00007f9cad20cab0 is pointing into the stack for thread: 0x00007f9c540bc800
RBP=0x00007f9cad20cbe0 is pointing into the stack for thread: 0x00007f9c540bc800
RSI=0x00007f9cad20ccd4 is pointing into the stack for thread: 0x00007f9c540bc800
RDI=0x0000000000000001 is an unknown value
R8 =0x00007f9cad20cc90 is pointing into the stack for thread: 0x00007f9c540bc800
R9 =0x00007f9cc9b0467d is an unknown value
R10=0x0000000000000004 is an unknown value
R11=0x00007f9cad20d4e0 is pointing into the stack for thread: 0x00007f9c540bc800
R12=0x00007f9cc9b04679 is an unknown value
R13=0x0000000000000000 is an unknown value
R14=0x00007f9cad20ccfa is pointing into the stack for thread: 0x00007f9c540bc800
R15=0x0000000000000026 is an unknown value


Stack: [0x00007f9cad10f000,0x00007f9cad210000],  sp=0x00007f9cad20cab0,  free space=1014k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libc.so.6+0x12195b]  nscd_gethst_r+0x54b

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 4778  java.net.Inet4AddressImpl.getLocalHostName()Ljava/lang/String; (0 bytes) @ 0x00007f9cd17c8858 [0x00007f9cd17c8820+0x38]
J 4784 C2 java.net.InetAddress.getLocalHost()Ljava/net/InetAddress; (188 bytes) @ 0x00007f9cd1832b50 [0x00007f9cd1832b00+0x50]
j  com.elong.hotel.dc.core.util.ActionLogUtil.actionLog(Ljava/lang/Boolean;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;FLjava/lang/Integer;Ljava/lang/String;)V+31
J 8943 C2 com.elong.hotel.dc.core.business.ctrip.staticinfo.CtripHotelDrrConsumeService.updateHotelDrr(Lcom/elong/hotel/dc/serviceagent/refers/ctrip/hotelStaticInfo/staitcinfo/UpdateStaticHotelDrrRequest;)V (305 bytes) @ 0x00007f9cd2e28dd4 [0x00007f9cd2e27ba0+0x1234]
j  com.elong.hotel.dc.core.service.ctrip.staticinfo.room.consumer.CtripHotelDrrConsumer.updateHotelDrr(Lcom/elong/hotel/dc/serviceagent/refers/ctrip/hotelStaticInfo/staitcinfo/UpdateStaticHotelDrrRequest;)Lcom/elong/hotel/dc/entity/resp/RabbitMqResp;+13
j  sun.reflect.GeneratedMethodAccessor2692.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+40
J 906 C2 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; (63 bytes) @ 0x00007f9cd0f5dd2c [0x00007f9cd0f5dc80+0xac]
j  com.elong.hotel.dc.restapi.server.ServiceManager.callMethod(Lcom/elong/hotel/dc/restapi/server/ServiceObject;Ljava/lang/Object;)Ljava/lang/Object;+16
j  com.elong.hotel.dc.restapi.server.ServiceManager.executeService(Lcom/elong/hotel/dc/restapi/server/RestRequest;)Lcom/elong/hotel/dc/restapi/server/RestResponse;+30
j  com.elong.hotel.dc.restapi.server.StandardRestApiExecutor.execute(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+155
j  com.elong.hotel.dc.restapi.server.RabbitMqServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+11
j  javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+149
j  javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+30
J 7217 C2 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (624 bytes) @ 0x00007f9cd2476a88 [0x00007f9cd24769c0+0xc8]
J 7216 C2 org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (105 bytes) @ 0x00007f9cd1875d54 [0x00007f9cd1875d20+0x34]
J 7217 C2 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (624 bytes) @ 0x00007f9cd2476cdc [0x00007f9cd24769c0+0x31c]
J 7216 C2 org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (105 bytes) @ 0x00007f9cd1875d54 [0x00007f9cd1875d20+0x34]
j  org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljavax/servlet/FilterChain;)V+53
J 7217 C2 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (624 bytes) @ 0x00007f9cd2476dfc [0x00007f9cd24769c0+0x43c]
J 7216 C2 org.apache.catalina.core.ApplicationFilterChain.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (105 bytes) @ 0x00007f9cd1875d54 [0x00007f9cd1875d20+0x34]
j  org.apache.catalina.core.StandardWrapperValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+783
j  org.apache.catalina.core.StandardContextValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+166
j  org.apache.catalina.authenticator.AuthenticatorBase.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+449
j  org.apache.catalina.core.StandardHostValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+148
j  org.apache.catalina.valves.ErrorReportValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
j  org.apache.catalina.valves.AccessLogValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+6
j  org.apache.catalina.core.StandardEngineValve.invoke(Lorg/apache/catalina/connector/Request;Lorg/apache/catalina/connector/Response;)V+71
j  org.apache.catalina.connector.CoyoteAdapter.service(Lorg/apache/coyote/Request;Lorg/apache/coyote/Response;)V+196
J 8332 C2 org.apache.coyote.http11.AbstractHttp11Processor.process(Lorg/apache/tomcat/util/net/SocketWrapper;)Lorg/apache/tomcat/util/net/AbstractEndpoint$Handler$SocketState; (1124 bytes) @ 0x00007f9cd29dd4b4 [0x00007f9cd29dcec0+0x5f4]
J 8660 C2 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Lorg/apache/tomcat/util/net/SocketWrapper;Lorg/apache/tomcat/util/net/SocketStatus;)Lorg/apache/tomcat/util/net/AbstractEndpoint$Handler$SocketState; (738 bytes) @ 0x00007f9cd2b614e4 [0x00007f9cd2b61080+0x464]
J 8297 C2 org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run()V (608 bytes) @ 0x00007f9cd29c8144 [0x00007f9cd29c8000+0x144]
J 5850% C2 java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V (225 bytes) @ 0x00007f9cd1b11e0c [0x00007f9cd1b11be0+0x22c]
j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5
j  org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run()V+4
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub


不明白为什么会报错,主要是不能复现,偶尔才会

3 个赞

AI内容请使用截图

一直出现的,还是最近出现的,查看服务器资源使用情况了吗

dmesg | egrep -i -B100 ‘killed process’ 可以查看为什么被杀,我们也遇到过,都是内存原因

这个可以让他看看,但是他应该是看过,资源应该是足够的吧,如果是资源问题或者其他OOM也不会这样问了…

:joy: 我问过ai的,我交代一下背景吧

1 领导不让升级
2 问题不能复现,只是偶尔,如果是NSCD宕机等,理论上会一直有问题
3 就想知道更细的,到底是什么照成 本地方法Inet4AddressImpl.getLocalHostName()报错

是的,不是被系统kil掉的, 是jvm自身 crash 不会有 kill记录