Tomcat启动:A fatal error has been detected by the Java Runtime Environment(JVM Crash分析及相关资料)
来源:互联网 发布:linux下配置环境变量 编辑:程序博客网 时间:2024/05/16 10:18
2013年1月10号注:
今天更新代码之后,突然出现一个问题:Tomcat启动时,总是会出现jvm fatal error错误导致tomcat无法正常启动,以下是错误信息:
- #
- # A fatal error has been detected by the Java Runtime Environment:
- #
- # Internal Error (c1_Optimizer.cpp:271), pid=6048, tid=5404
- # guarantee(x_compare_res != Constant::not_comparable) failed: incomparable constants in IfOp
- #
- # JRE version: 6.0_29-b11
- # Java VM: Java HotSpot(TM) Client VM (20.4-b02 mixed mode windows-x86 )
- 2013-01-10 13:47:34,671 INFO hibernate.cfg.AnnotationBinder:419 -> Binding entity from annotated class: com.estone.www.spis.model.po.zd.sys.DPossession
- 2013-01-10 13:47:34,671 INFO cfg.annotations.EntityBinder:422 -> Bind entity com.estone.www.spis.model.po.zd.sys.DPossession on table d_possession
- 2013-01-10 13:47:34,671 INFO hibernate.cfg.AnnotationBinder:419 -> Binding entity from annotated class: com.estone.www.spis.model.po.zd.writ.DWritTemplate
- 2013-01-10 13:47:34,671 INFO cfg.annotations.EntityBinder:422 -> Bind entity com.estone.www.spis.model.po.zd.writ.DWritTemplate on table d_writ_template
- 2013-01-10 13:47:34,671 INFO hibernate.cfg.AnnotationBinder:419 -> Binding entity from annotated class: com.estone.www.spis.model.po.zd.writ.DWritType
- 2013-01-10 13:47:34,671 INFO cfg.annotations.EntityBinder:422 -> Bind entity com.estone.www.spis.model.po.zd.writ.DWritType on table d_writ_type
- # An error report file with more information is saved as:
- # D:\Program Files\apache-tomcat-6.0.20\bin\hs_err_pid6048.log
- #
- # If you would like to submit a bug report, please visit:
- # http://java.sun.com/webapps/bugreport/crash.jsp
- #
在网上搜寻好久,终于找到了类似错误,网上解释归结于:JIT在做编译优化的时候处理时出错,可能是触发了JVM的编译器的BUG导致的。幸好SUN(Oracle)提供了相关的文档说明,得以让我们解决了这个问题。
文档地址:http://www.oracle.com/technetwork/java/javase/crashes-137240.html#gbyzu
在这里,导致本次错误的是这个方法:
- org.hibernate.cfg.annotations.SimpleValueBinder.setType
解决办法:让jvm跳过该方法的编译优化
1.如果是eclipse下启动服务,则在myeclipse-preference-Java-installed jres 里面设置, 在 defalt vm arguments 填入下边的代码就可以了!如图:
代码:
- -XX:CompileCommand=exclude,org/hibernate/cfg/annotations/SimpleValueBinder,setType
选择使用的JRE,,点击编辑edit
将上边代码粘贴到此处,OK
2.如果是直接通过startup 启动tomcat,则需要修改以下文件 Windows下,在文件/bin/catalina.bat,Unix下,在文件/bin/catalina.sh找到
- set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%
- set JAVA_OPTS=%JAVA_OPTS% -XX:CompileCommand=exclude,org/hibernate/cfg/annotations/SimpleValueBinder,setType %LOGGING_CONFIG%
参考资料:感谢以下链接的朋友
http://seanhe.iteye.com/blog/905997
http://eric-flower.iteye.com/blog/1447080
http://sind.iteye.com/blog/1132459
by:http://blog.csdn.net/fei1502816/article/details/8489613
0 0
- Tomcat启动:A fatal error has been detected by the Java Runtime Environment(JVM Crash分析及相关资料)
- Tomcat启动:A fatal error has been detected by the Java Runtime Environment(JVM Crash分析及相关资料)
- Tomcat启动:A fatal error has been detected by the Java Runtime Environment(JVM Crash分析及相关资料)
- A fatal error has been detected by the Java Runtime Environment(JVM Crash分析及相关资料)
- 服务器启动报错(Jetty、Tomcat),A fatal error has been detected by the Java Runtime Environment(JVM Crash分析及相关
- Tomcat启动:A fatal error has been detected by the Java Runtime Environment(JVM)
- tomcat启动报错,A fatal error has been detected by the Java Runtime Environment:
- tomcat启动报错,A fatal error has been detected by the Java Runtime Environment
- Tomcat启动报A fatal error has been detected by the Java Runtime Environment
- Tomcat启动:A fatal error has been detected by the Java Runtime Environment
- jvm bug A fatal error has been detected by the Java Runtime Environment:
- 启动ADT bundle 时出错:A fatal error has been detected by the Java Runtime Environment:
- Debain启动MyEclipse2015报错:A fatal error has been detected by the Java Runtime Environment:
- A fatal error has been detected by the Java Runtime Environment(图解)
- 一个JVM的错误让我遇到了:A fatal error has been detected by the Java Runtime Environment
- eclipse启动 java虚拟机报错 A fatal error has been detected by the Java Runtime Environment:
- JAVA VM bug :A fatal error has been detected by the Java Runtime Environment
- Tomcat执行时报A fatal error has been detected by the Java Runtime Environment:SIGSEGV (0xb)
- 关于new 与 malloc的一个问题
- Java IO - CharArrayReader&CharArrayWriter
- POJ 3984 迷宫问题(bfs搜索,递归打印)
- CodeVS 1039 数的划分
- 格子刷油漆(DP)
- Tomcat启动:A fatal error has been detected by the Java Runtime Environment(JVM Crash分析及相关资料)
- PAT乙级—1047. 编程团体赛(20)-native
- 配置java 和tomacat环境过程
- C++实验6--数组合并
- 设计模式的学习——工厂模式
- Java 之类的加载顺序
- 利用 ACE 来实现 UDP 通讯
- linux mysql5.5安装与配置
- 每天刷个算法题20160518:非递归二叉树遍历