问题遇到的现象和发生背景
用spring boot做了一个前后端不分离的java项目,打包为jar文件后 使用java -jar 命令运行在windows Server 2016服务器上,每次运行时都能成功,但是偶尔会报错后停止运行,平时的解决方式是重新启动java服务。但是不知道是什么原因导致这个错误,想知道这个报错的原因和解决方法。有没有人遇到过和我一样的问题。求告知!
运行结果及报错日志部分内容如下:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000773863be, pid=54132, tid=0x000000000000cc64
#
# JRE version: Java(TM) SE Runtime Environment (8.0_161-b12) (build 1.8.0_161-b12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.161-b12 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [Qt5Core.dll+0x1c63be]
#
# Core dump written. Default location: C:\server\crmServer\hs_err_pid54132.mdmp
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
--------------- T H R E A D ---------------
Current thread (0x000000001b3af000): JavaThread "http-nio-8088-exec-1" daemon [_thread_in_native, id=52324, stack(0x0000000021230000,0x0000000021330000)]
siginfo: ExceptionCode=0xc0000005, reading address 0xffffffffffffffff
Registers:
RAX=0x00000000775631e8, RBX=0x00000000011653a0, RCX=0x00000000006b69b0, RDX=0x0000000000000001
RSP=0x000000002132c840, RBP=0x0000000000000000, RSI=0x00000000008ef6e0, RDI=0x0000000001165370
R8 =0x0000000000000000, R9 =0x000000002132c868, R10=0x00000000008ef020, R11=0x000000002132c8c8
R12=0x000000000090ce90, R13=0x00000000008f3180, R14=0x00000000008efb60, R15=0x0000000000000000
RIP=0x00000000773863be, EFLAGS=0x0000000000010202