当前位置: 首页 > 工具软件 > nQuery > 使用案例 >

JVM报错:C [libresolv.so.2+0x7a91] __libc_res_nquery+0x1c1

郎鹤龄
2023-12-01

部署公司内网服务时,启动tomcat出现错误: 

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f8c6dc58a91, pid=26369, tid=140241293625088
#
# JRE version: Java(TM) SE Runtime Environment (7.0_80-b15) (build 1.7.0_80-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.80-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libresolv.so.2+0x7a91]  __libc_res_nquery+0x1c1
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/portal/portal-2.0/cas-server/bin/hs_err_pid26369.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

空起tomcat是正常的,加入应用war包启动失败,应用war包中涉及到连接公网数据库,起初测试该地址是通过ping和telnet命令,测试正常;随后加入自己的war包,可以启动,自己war包未涉及该公网数据库,由此猜测为该问题导致。看到一篇报C [libresolv.so.2+0x7a91] __libc_res_nquery+0x1c1的错误,文章说是由DNS导致,起初认为,应用中指定了IP,并未使用域名,应该不属于域名问题。

但事实证明,配置机器的网卡的DNS(我配置的是180.76.76.76)解决了该问题。

导致该问题的具体原因,目前还未查清,欢迎知道的大神在评论区指出。

 类似资料: