近日,Eclipse經常掛掉,都是由於JVM崩潰的原因。每次都有以下錯誤日志:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x7bab036c, pid=12169, tid=3072990096
#
# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) Server VM (14.3-b01 mixed mode linux-x86 )
# Problematic frame:
# C [libxul.so+0xc8236c]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
非常的郁悶, 後來Google了一痛,發現如下方法可以解決:
在Eclipse的啟動參數中加入:
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-1.9/
然後問題就解決了。