Java虚拟机崩溃多次 [英] Java Virtual Machine crashes Multiple times

查看:64
本文介绍了Java虚拟机崩溃多次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是整个错误消息

http://pastebin.com/bDgye0rt

错误日志太大,无法在此处附加.我对jvm在后台的工作方式以及使用它的寄存器并不十分熟悉.我希望有人可以查看此错误日志并向我解释这意味着什么.

The error log is too big that I can't attach it here. I am not extremely familiar with how jvm works in the background and what registers it makes use of. I am hoping someone can look at this error log and explain to me what it means.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ffd18cbcafe, pid=29906, tid=140725158119168
#
# JRE version: 6.0_27-b27
# Java VM: OpenJDK 64-Bit Server VM (20.0-b12 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.12.6
# Distribution: Debian GNU/Linux 7.1 (wheezy), package 6b27-1.12.6-1~deb7u1
# Problematic frame:
# C  [libresolv.so.2+0x7afe]  __libc_res_nquery+0x19e
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
#   http://icedtea.classpath.org/bugzilla
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

我不明白为什么创建它以及如何创建它.它一直在发生.

I can't understand why and how it is created. It keeps happening all the time.

PS:我的机器上又发生了3次崩溃的错误日志,如果您认为有必要,可以共享.

PS: I have the error log of another 3 crashes that happened in my machine which I can share if you think its necessary.

我大约有8条日志,在这8条日志中,很明显,程序崩溃之前的最后一次调用是

I have around 8 logs and out of the 8 logs it is made clear that the last call before the program crashes is

java.net.Inet6AddressImpl.lookupAllHostAddr

我不认为输入的相关性如此大,因为有一个静态的输入列表会被串行解析,并且错误发生在不同的时间范围内(有时在程序运行1小时后,有时在6小时后),这似乎是随机的.

I do not believe the input is that much related because there is a static list of inputs that are parsed serially, and the error occurs at different time frames (Sometimes 1 hour after the program has been running and some other times 6 hours, it appears to be random).

推荐答案

这是与glibc和IPv6有关的问题.

It is an issue related to glibc and IPv6.

添加-Djava.net.preferIPv4Stack = true来要求JVM首先使用IPv4可以避免此问题,这是安全的.

It would be safe to add -Djava.net.preferIPv4Stack=true to ask JVM use IPv4 first to avoid this issue.

这篇关于Java虚拟机崩溃多次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆