本帖最后由 nianersmall 于 2011-05-31 08:47:39 编辑 Tomcat运行一段时间之后服务停止,没有异常日志输出,查看系统事件,说Tomcat意外停止;
在System32文件夹下发现:hs_err_pid1532.log日志;
运行环境如下:
程序存放位置:“D:\platform\”,同时把Tomcat、JDK、MySQL也都放在了这个路径下;
操作系统:Windows Server 2003 Service Pack 2
JDK版本: 6.0_18-b07
MySQL: 5.1
应该不是内存问题,以为内存设置的已经足够大了,且未报出内存溢出错误OutOfMemoryError;
硬件问题的可能性也比较小,因为不只在一台机器上发生这样的问题;
系统在一段时间,集中处理图片,是否是由于java对图片的处理能力不足造成的JDK崩溃?
到底是什么原因造成的,还望各位大侠不吝赐教。
hs_err_pid1532.log的内容如下:
/*
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6dcf0f93, pid=1532, tid=1552
#
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Server VM (16.0-b13 mixed mode windows-x86 )
# Problematic frame:
# V [jvm.dll+0x180f93]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x006fdc00): GCTaskThread [stack: 0x33ab0000,0x33b00000] [id=1552]
siginfo: ExceptionCode=0xc0000005, reading address 0xfffffffc
Registers:
EAX=0xfffffffc, EBX=0x1626cbe0, ECX=0x28d50000, EDX=0x1626cb01
ESP=0x33affc68, EBP=0x33affc80, ESI=0x33b72240, EDI=0x1626cbe0
EIP=0x6dcf0f93, EFLAGS=0x00010202
Top of Stack: (sp=0x33affc68)
0x33affc68: 338853e6 1626cbd8 00000001 04c66318
0x33affc78: 04c66318 1626cbe0 33affcc0 6dc1859d
0x33affc88: 01b72240 1626cbd8 33b15408 33b72240
0x33affc98: 00000000 c00c0a02 00000080 338860e1
0x33affca8: 33885300 338853dd 163d1010 1626cc00
0x33affcb8: 006fb708 01affce8 33affce4 6de15aa7
0x33affcc8: 006fb810 338853e6 1640c1c0 33b72240
0x33affcd8: 33885f09 33b15408 006fdc00 33affd54
Instructions: (pc=0x6dcf0f93)
0x6dcf0f83: 6d 3b c1 1a d2 fe c2 88 55 0b 0f 84 cc 00 00 00
0x6dcf0f93: 8b 10 83 e2 03 80 fa 03 75 3a 8a 15 09 3b f3 6d
Stack: [0x33ab0000,0x33b00000], sp=0x33affc68, free space=13f33aff7e4k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x180f93]
V [jvm.dll+0xa859d]
V [jvm.dll+0x2a5aa7]
V [jvm.dll+0x157bcc]
V [jvm.dll+0x27e50c]
C [MSVCR71.dll+0x9565]
C [kernel32.dll+0x24829]
*/
------解决方案--------------------
/*
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x35d2dc00 JavaThread "http-5000-7" daemon [_thread_blocked, id=428, stack(0x39b10000,0x39b60000)]