search

Home  >  Q&A  >  body text

java - 运行异常:A fatal exception has occurred. Program will exit

问题:
此次异常主要是线上问题,没有直接操作服务器的权限。已知:集群其中一台正常可用,一台运行执行部分接口
报错,异常为:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
整理猜测是服务器配置出现问题或者权限问题,服务器使用tomcat8,jdk1.8

尝试:
由于异常就此2行,排查无从下手,查询资料:
http://surenpi.com/2016/12/27...
http://hibeary.iteye.com/blog...
http://blog.itpub.net/2891601...
http://blog.sina.com.cn/s/blo...
http://blog.csdn.net/longeran...
由于在服务器上出现问题,排除了很多eclipse等工具相关的。跟jvm相关-Xmx512M等,我在window系统上修改模拟不出异常。看到些老文章说卸载重装jdk,这个我觉得jdk没法不之前正常可用,问题不在于此。

天蓬老师天蓬老师2803 days ago9676

reply all(1)I'll reply

  • 阿神

    阿神2017-04-18 10:34:54

    Provide an idea:
    1. There is no problem locally, but there is this problem when deployed to the server. First make sure the server environment is consistent with the local one.
    2. If the environment is determined to be consistent, it is most likely due to permissions. The user who starts does not have the permission to execute jvm.

    reply
    0
  • Cancelreply