在中标linux下启动adminconsole报jvm crash的错误,主要信息如下:
# # An unexpected error has been detected by HotSpot Virtual Machine: # # # # Java VM: Java HotSpot(TM) Client VM (1.5.0_20-b02 mixed mode, sharing) # Problematic frame: # C # <?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /> ………………………… Environment Variables: JAVA_HOME=/root/software/jdk1.5.0_20 PATH=/root/software/jdk1.5.0_20/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/root/software/jdk1.5.0_20/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin LD_LIBRARY_PATH=/root/software/jdk1.5.0_20/jre/lib/i386/client::/root/software/jdk1.5.0_20/jre/lib/i386:: SHELL=/bin/bash DISPLAY=:0 |
经分析发现是firefox下的xulrunner目录下的包和Jdk的jre包冲突,引起的。
解决方案:
方案(1)、将xulrunner目录整个剔除或者移到其他路径下
方案(2)、在启动adminconsole的脚本中添加如下设置:
export MOZILLA_FIVE_HOME=$JAVA_HOME/jre/lib/i386/client |
例如:
#!/bin/sh # # Copyright (c) 2000, 2007 ShenZhen Kingdee Middleware Co.,Ltd. # All Rights Reserved. BINDIR=`dirname $0` . “$BINDIR/setenv” cd $BINDIR/eclipse export MOZILLA_FIVE_HOME=/root/software/jdk1.5.0_20/jre/lib/i386/client ./eclipse -vmargs -XX:PermSize=128m -XX:MaxPermSize=256m -Xms512m -Xmx512m |
建议采用方案(2)。
Tip:在红旗linux(Asinux)下也会有此问题,主要是和firefox的xulrunner冲突的缘故。