tomcat服务意外停止,求大侠们帮助

slayerliu 发布于 2012/03/29 11:44
阅读 3K+
收藏 0
本人在windows2003上装了tomcat6和JDK6,部署了一个项目在上面,通过内网访问一般正常,但有时候tomcat服务停止,通过外网访问的时候,有很大机会tomcat服务停止,并出现关于JVM崩溃的日志hs_err_pid5632.log,小弟一直苦无对策,请大家帮小弟一把,下面是日志内容

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c95be3e, pid=5632, tid=4840
#
# Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode windows-x86)
# Problematic frame:
# C  [ntdll.dll+0x2be3e]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/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 (0x0b13f000):  JavaThread "http-8080-3" daemon [_thread_in_native, id=4840, stack(0x0bfb0000,0x0c000000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x2054453f

Registers:
EAX=0x00000380, EBX=0x00000401, ECX=0x0000037f, EDX=0x20544547
ESP=0x0bfff038, EBP=0x0bfff044, ESI=0x00300178, EDI=0x0b470000
EIP=0x7c95be3e, EFLAGS=0x00010283

Top of Stack: (sp=0x0bfff038)
0x0bfff038:   00300000 000005a1 0ae53190 0bfff068
0x0bfff048:   7c95b561 00300178 000005a1 0ae53190
0x0bfff058:   00300000 0ad80000 0ad80000 02470000
0x0bfff068:   0bfff0b0 7c95ba81 000005a1 00e53190
0x0bfff078:   000005a1 00300000 0ae53190 00000000
0x0bfff088:   00000e98 0ae55000 0bfff0ac 0ad80000
0x0bfff098:   00000000 00000000 00000000 000001ce
0x0bfff0a8:   00000000 000001d3 0bfff194 7c95b646

Instructions: (pc=0x7c95be3e)
0x7c95be2e:   57 64 8b 14 8a 83 c2 08 3b f2 0f 84 d5 fe ff ff
0x7c95be3e:   0f b7 5a f8 3b 5d 0c 73 0b 8b 12 3b f2 75 f1 e9


Stack: [0x0bfb0000,0x0c000000],  sp=0x0bfff038,  free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [ntdll.dll+0x2be3e]
C  [ntdll.dll+0x2b561]
C  [ntdll.dll+0x2ba81]
C  [ntdll.dll+0x2b646]
C  [msvcr71.dll+0x218a]
C  [net.dll+0x710e]
j  java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I+0
j  java.net.SocketInputStream.read([BII)I+84
j  org.apache.coyote.http11.InternalInputBuffer.fill()Z+59
j  org.apache.coyote.http11.InternalInputBuffer.parseRequestLine()V+16
j  org.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)V+258
j  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82
j  org.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I+0
j  java.net.SocketInputStream.read([BII)I+84
j  org.apache.coyote.http11.InternalInputBuffer.fill()Z+59
j  org.apache.coyote.http11.InternalInputBuffer.parseRequestLine()V+16
j  org.apache.coyote.http11.Http11Processor.process(Ljava/net/Socket;)V+258
j  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Ljava/net/Socket;)Z+82
j  org.apache.tomcat.util.net.JIoEndpoint$Worker.run()V+41
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0aabb400 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" daemon [_thread_blocked, id=5852, stack(0x0c0f0000,0x0c140000)]
  0x0ae99400 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" daemon [_thread_blocked, id=2404, stack(0x0c0a0000,0x0c0f0000)]
  0x0ae9a000 JavaThread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" daemon [_thread_blocked, id=5716, stack(0x0c050000,0x0c0a0000)]
  0x0aae6800 JavaThread "Timer-0" daemon [_thread_blocked, id=4828, stack(0x0c000000,0x0c050000)]
=>0x0b13f000 JavaThread "http-8080-3" daemon [_thread_in_native, id=4840, stack(0x0bfb0000,0x0c000000)]
  0x0b21c800 JavaThread "http-8080-2" daemon [_thread_blocked, id=5600, stack(0x0bf60000,0x0bfb0000)]
  0x0b187800 JavaThread "http-8080-1" daemon [_thread_blocked, id=4472, stack(0x0bf10000,0x0bf60000)]
  0x0b156400 JavaThread "TP-Monitor" daemon [_thread_blocked, id=3424, stack(0x0be60000,0x0beb0000)]
  0x0b16c800 JavaThread "TP-Processor4" daemon [_thread_in_native, id=5508, stack(0x0be10000,0x0be60000)]
  0x0b103400 JavaThread "TP-Processor3" daemon [_thread_blocked, id=2368, stack(0x0bdc0000,0x0be10000)]
  0x0b1ab800 JavaThread "TP-Processor2" daemon [_thread_blocked, id=4392, stack(0x0bd70000,0x0bdc0000)]
  0x0b283800 JavaThread "TP-Processor1" daemon [_thread_blocked, id=408, stack(0x0bd20000,0x0bd70000)]
  0x0b21d000 JavaThread "http-8080-Acceptor-0" daemon [_thread_in_native, id=756, stack(0x0bcd0000,0x0bd20000)]
  0x0b0ed400 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=1292, stack(0x0bc80000,0x0bcd0000)]
  0x0b0b4c00 JavaThread "GC Daemon" daemon [_thread_blocked, id=3328, stack(0x0b380000,0x0b3d0000)]
  0x0aa9b000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5876, stack(0x0ace0000,0x0ad30000)]
  0x0aa95000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=856, stack(0x0ac90000,0x0ace0000)]
  0x0aa8e800 JavaThread "Attach Listener" daemon [_thread_blocked, id=2228, stack(0x0ac40000,0x0ac90000)]
  0x0aaa5800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5312, stack(0x0abf0000,0x0ac40000)]
  0x0aa7c800 JavaThread "Finalizer" daemon [_thread_blocked, id=4352, stack(0x0aba0000,0x0abf0000)]
  0x0aa77c00 JavaThread "Reference Handler" daemon [_thread_blocked, id=3260, stack(0x0ab50000,0x0aba0000)]
  0x00307000 JavaThread "main" [_thread_in_native, id=5884, stack(0x00860000,0x008b0000)]

Other Threads:
  0x0aa74400 VMThread [stack: 0x0ab00000,0x0ab50000] [id=424]
  0x0aa9d000 WatcherThread [stack: 0x0ad30000,0x0ad80000] [id=5392]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 1344K, used 1067K [0x02960000, 0x02ad0000, 0x02e40000)
  eden space 1216K,  79% used [0x02960000, 0x02a52918, 0x02a90000)
  from space 128K,  76% used [0x02a90000, 0x02aa86a0, 0x02ab0000)
  to   space 128K,   0% used [0x02ab0000, 0x02ab0000, 0x02ad0000)
 tenured generation   total 17204K, used 10528K [0x02e40000, 0x03f0d000, 0x06960000)
   the space 17204K,  61% used [0x02e40000, 0x03888218, 0x03888400, 0x03f0d000)
 compacting perm gen  total 27136K, used 27078K [0x06960000, 0x083e0000, 0x0a960000)
   the space 27136K,  99% used [0x06960000, 0x083d1ad8, 0x083d1c00, 0x083e0000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x00424000  C:\CDSV\CDSVSoft\jdk1.6.0_10\bin\java.exe
0x7c930000 - 0x7ca00000  C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c92b000  C:\WINDOWS\system32\kernel32.dll
0x77f30000 - 0x77fdb000  C:\WINDOWS\system32\ADVAPI32.dll
0x77c20000 - 0x77cbf000  C:\WINDOWS\system32\RPCRT4.dll
0x76eb0000 - 0x76ec3000  C:\WINDOWS\system32\Secur32.dll
0x7c340000 - 0x7c396000  C:\CDSV\CDSVSoft\jdk1.6.0_10\jre\bin\msvcr71.dll
0x6d8b0000 - 0x6db06000  C:\CDSV\CDSVSoft\jdk1.6.0_10\jre\bin\client\jvm.dll
0x77e10000 - 0x77ea0000  C:\WINDOWS\system32\USER32.dll
0x77bd0000 - 0x77c18000  C:\WINDOWS\system32\GDI32.dll
0x769e0000 - 0x76a0a000  C:\WINDOWS\system32\WINMM.dll
0x76180000 - 0x7619d000  C:\WINDOWS\system32\IMM32.DLL
0x7f000000 - 0x7f009000  C:\WINDOWS\system32\LPK.DLL
0x74ae0000 - 0x74b45000  C:\WINDOWS\system32\USP10.dll
0x6d330000 - 0x6d338000  C:\CDSV\CDSVSoft\jdk1.6.0_10\jre\bin\hpi.dll
0x76ab0000 - 0x76abb000  C:\WINDOWS\system32\PSAPI.DLL
0x6d860000 - 0x6d86c000  C:\CDSV\CDSVSoft\jdk1.6.0_10\jre\bin\verify.dll
0x6d3d0000 - 0x6d3ef000  C:\CDSV\CDSVSoft\jdk1.6.0_10\jre\bin\java.dll
0x6d8a0000 - 0x6d8af000  C:\CDSV\CDSVSoft\jdk1.6.0_10\jre\bin\zip.dll
0x6d610000 - 0x6d619000  C:\CDSV\CDSVSoft\jdk1.6.0_10\jre\bin\management.dll
0x6d840000 - 0x6d848000  C:\CDSV\CDSVSoft\jdk1.6.0_10\jre\bin\sunmscapi.dll
0x760a0000 - 0x76131000  C:\WINDOWS\system32\CRYPT32.dll
0x77b70000 - 0x77bca000  C:\WINDOWS\system32\msvcrt.dll
0x76080000 - 0x76092000  C:\WINDOWS\system32\MSASN1.dll
0x6d6c0000 - 0x6d6d3000  C:\CDSV\CDSVSoft\jdk1.6.0_10\jre\bin\net.dll
0x71b60000 - 0x71b77000  C:\WINDOWS\system32\WS2_32.dll
0x71b50000 - 0x71b58000  C:\WINDOWS\system32\WS2HELP.dll
0x71a80000 - 0x71ac0000  C:\WINDOWS\system32\mswsock.dll
0x69660000 - 0x696b7000  C:\WINDOWS\system32\hnetcfg.dll
0x71a40000 - 0x71a48000  C:\WINDOWS\System32\wshtcpip.dll
0x76e30000 - 0x76e5b000  C:\WINDOWS\system32\DNSAPI.dll
0x76ed0000 - 0x76ed7000  C:\WINDOWS\System32\winrnr.dll
0x76e70000 - 0x76e9e000  C:\WINDOWS\system32\WLDAP32.dll
0x76ee0000 - 0x76ee5000  C:\WINDOWS\system32\rasadhlp.dll
0x68000000 - 0x68035000  C:\WINDOWS\system32\rsaenh.dll
0x75870000 - 0x7592d000  C:\WINDOWS\system32\USERENV.dll
0x71ba0000 - 0x71bf7000  C:\WINDOWS\system32\netapi32.dll
0x76c50000 - 0x76c69000  C:\WINDOWS\system32\iphlpapi.dll
0x76c30000 - 0x76c49000  C:\WINDOWS\system32\MPRAPI.dll
0x76d50000 - 0x76d84000  C:\WINDOWS\system32\ACTIVEDS.dll
0x76d20000 - 0x76d48000  C:\WINDOWS\system32\adsldpc.dll
0x76ac0000 - 0x76b05000  C:\WINDOWS\system32\credui.dll
0x7ca10000 - 0x7d1eb000  C:\WINDOWS\system32\SHELL32.dll
0x77eb0000 - 0x77f02000  C:\WINDOWS\system32\SHLWAPI.dll
0x769c0000 - 0x769d8000  C:\WINDOWS\system32\ATL.DLL
0x774b0000 - 0x775e9000  C:\WINDOWS\system32\ole32.dll
0x775f0000 - 0x7767b000  C:\WINDOWS\system32\OLEAUT32.dll
0x76d90000 - 0x76d9c000  C:\WINDOWS\system32\rtutils.dll
0x7e020000 - 0x7e02f000  C:\WINDOWS\system32\SAMLIB.dll
0x770d0000 - 0x77244000  C:\WINDOWS\system32\SETUPAPI.dll
0x77cd0000 - 0x77dd3000  C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.3959_x-ww_D8713E55\comctl32.dll

VM Arguments:
jvm_args: -Djava.util.logging.config.file=.\apache-tomcat-ZTE\conf\logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=.\apache-tomcat-ZTE\endorsed -Dcatalina.base=.\apache-tomcat-ZTE -Dcatalina.home=.\apache-tomcat-ZTE -Djava.io.tmpdir=.\apache-tomcat-ZTE\temp
java_command: org.apache.catalina.startup.Bootstrap start
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=.\jdk1.6.0_10
JRE_HOME=.\jdk1.6.0_10
CLASSPATH=.\apache-tomcat-ZTE\bin\bootstrap.jar
PATH=.\jdk1.6.0_10\bin;.\jdk1.6.0_10\lib;.\jdk1.6.0_10\jre\lib;C:\WINDOWS\System32\Wbem;
USERNAME=Administrator
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel

 

---------------  S Y S T E M  ---------------

OS: Windows Server 2003 family Build 3790 Service Pack 2

CPU:total 4 (4 cores per cpu, 1 threads per core) family 6 model 7 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 2097151k(2097151k free), swap 4194303k(4023092k free)

vm_info: Java HotSpot(TM) Client VM (11.0-b15) for windows-x86 JRE (1.6.0_10-rc2-b32), built on Sep 12 2008 00:52:11 by "java_re" with MS VC++ 7.1

time: Tue Mar 27 14:41:04 2012
elapsed time: 26 seconds
加载中
0
红薯
红薯
最头疼的就是这种错误了,直接是虚拟机级别的错误信息,很难找出具体的问题所在
0
MoroseYu
MoroseYu
换个tomcat版本试试把。
0
钛元素
钛元素

1 在win下的tomcat对于32位还是64位绝对不能错,当然java版本也是,你也错不了这个

2 tomcat请从官网下载,并且保证配置或安装后暂不添加东西到里面

3 每次修改都请记录大致修改了啥东东,方便日后查询判断问题

4 建议用jdk的稳定版本,即尽量不要用最新的;tomcat也是一样

5 win中是否有运行其他服务,防火墙策略如何等等需要判断

6

7

8

9

 

0
s
slayerliu

引用来自“钛元素”的答案

1 在win下的tomcat对于32位还是64位绝对不能错,当然java版本也是,你也错不了这个

2 tomcat请从官网下载,并且保证配置或安装后暂不添加东西到里面

3 每次修改都请记录大致修改了啥东东,方便日后查询判断问题

4 建议用jdk的稳定版本,即尽量不要用最新的;tomcat也是一样

5 win中是否有运行其他服务,防火墙策略如何等等需要判断

6

7

8

9

 

我看错误是 AV错误,然后log里面有一条 heap下面的the space 27136K,  99% used [0x06960000, 0x083d1ad8, 0x083d1c00, 0x083e0000) 会不会是内存耗尽了?

0
JFinal
JFinal
查查有无资源未回收的代码
0
钛元素
钛元素

引用来自“slayerliu”的答案

引用来自“钛元素”的答案

1 在win下的tomcat对于32位还是64位绝对不能错,当然java版本也是,你也错不了这个

2 tomcat请从官网下载,并且保证配置或安装后暂不添加东西到里面

3 每次修改都请记录大致修改了啥东东,方便日后查询判断问题

4 建议用jdk的稳定版本,即尽量不要用最新的;tomcat也是一样

5 win中是否有运行其他服务,防火墙策略如何等等需要判断

6

7

8

9

 

我看错误是 AV错误,然后log里面有一条 heap下面的the space 27136K,  99% used [0x06960000, 0x083d1ad8, 0x083d1c00, 0x083e0000) 会不会是内存耗尽了?

java使用非堆内存时经常发生泄露或者内存耗尽,这个跟你跑的程序有关系。

建议在启动tomcat的配置文件里面设置非堆内存占用,尽量大些

返回顶部
顶部