今天在测试java web程序,刷新页面后,eclipse后台出现以下错误,tomcat停止了,不知道是什么原因,
这是我第二次遇到这个问题了。请有同样问题的朋友来讨论以下原因和解决方法。An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7a95b2, pid=2216, tid=2664
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# V  [jvm.dll+0xc95b2]
#
# An error report file with more information is saved as hs_err_pid2216.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp

解决方案 »

  1.   

    这个厉害!把你这个文件贴出来好好读一读 hs_err_pid2216.log
      

  2.   

    LZ不会是在玩JNI吧,在JNI中最容易导致JVM直接崩溃
      

  3.   

    到jdk安装目录下全局查找一下hs_err_pid2216.log
    看看里面的错误信息。
      

  4.   

    今天早上找了一下,在eclipse安装目录下找到了这个文件,下面是里面的内容:#
    # An unexpected error has been detected by HotSpot Virtual Machine:
    #
    #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d7a95b2, pid=2216, tid=2664
    #
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
    # Problematic frame:
    # V  [jvm.dll+0xc95b2]
    #---------------  T H R E A D  ---------------Current thread (0x0096c640):  VMThread [id=2664]siginfo: ExceptionCode=0xc0000005, reading address 0x616a0073Registers:
    EAX=0x07b42a50, EBX=0x00000000, ECX=0x06a34c30, EDX=0x616a0017
    ESP=0x0ab0fbc4, EBP=0x0ab0fc00, ESI=0x06a302f0, EDI=0x6d854988
    EIP=0x6d7a95b2, EFLAGS=0x00010216Top of Stack: (sp=0x0ab0fbc4)
    0x0ab0fbc4:   07b42a50 6d7a9579 6d854988 6d7a97d9
    0x0ab0fbd4:   6d858e8c 6d7f118b 6d858e8c 6d854988
    0x0ab0fbe4:   0092f008 6d74ebe1 6d854988 00000000
    0x0ab0fbf4:   00000001 0092f008 00000000 0ab0fc68
    0x0ab0fc04:   6d74fe59 00000001 00000000 00000001
    0x0ab0fc14:   00000002 6d854988 6d854988 00000001
    0x0ab0fc24:   0092f008 00000000 00000000 00000001
    0x0ab0fc34:   00000001 0ab0fcc0 00000000 00000000 Instructions: (pc=0x6d7a95b2)
    0x6d7a95a2:   08 8b 40 08 8b 04 88 50 8b 48 04 83 c1 08 8b 11
    0x6d7a95b2:   ff 52 5c eb de c3 e9 00 00 00 00 c7 05 84 49 85 
    Stack: [0x0aad0000,0x0ab10000),  sp=0x0ab0fbc4,  free space=254k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V  [jvm.dll+0xc95b2]
    V  [jvm.dll+0x6fe59]
    V  [jvm.dll+0x6fbd8]
    V  [jvm.dll+0x73241]
    V  [jvm.dll+0x10876b]
    V  [jvm.dll+0x6e9d5]
    V  [jvm.dll+0x5160e]
    V  [jvm.dll+0x6eb80]
    V  [jvm.dll+0x1233f7]
    V  [jvm.dll+0x122ec5]
    V  [jvm.dll+0x12306e]
    V  [jvm.dll+0x122dd3]
    C  [MSVCRT.dll+0x2a3b0]
    C  [kernel32.dll+0xb729]VM_Operation (0x0c17e2a8): generation collection for allocation, mode: safepoint, requested by thread 0x0b43f380
    ---------------  P R O C E S S  ---------------Java Threads: ( => current thread )
      0x0b183318 JavaThread "TP-Monitor" daemon [_thread_blocked, id=1788]
      0x0af29998 JavaThread "TP-Processor4" daemon [_thread_in_native, id=3872]
      0x0b1c6738 JavaThread "TP-Processor3" daemon [_thread_blocked, id=3884]
      0x0b4092d0 JavaThread "TP-Processor2" daemon [_thread_blocked, id=2480]
      0x0af0fa90 JavaThread "TP-Processor1" daemon [_thread_blocked, id=1048]
      0x0b426cb8 JavaThread "http-8080-Monitor" [_thread_blocked, id=752]
      0x0b426168 JavaThread "http-8080-Processor25" daemon [_thread_blocked, id=1132]
      0x0b3b4da8 JavaThread "http-8080-Processor24" daemon [_thread_blocked, id=2040]
      0x0b3b4bc8 JavaThread "http-8080-Processor23" daemon [_thread_in_native, id=1380]
      0x0b3b3b08 JavaThread "http-8080-Processor22" daemon [_thread_blocked, id=1880]
      0x0b43f380 JavaThread "http-8080-Processor21" daemon [_thread_blocked, id=1588]
      0x0b43e9a0 JavaThread "http-8080-Processor20" daemon [_thread_blocked, id=2704]
      0x0b40d358 JavaThread "http-8080-Processor19" daemon [_thread_blocked, id=2272]
      0x0b40cdd0 JavaThread "http-8080-Processor18" daemon [_thread_blocked, id=2520]
      0x0b40c008 JavaThread "http-8080-Processor17" daemon [_thread_blocked, id=2072]
      0x0b494e70 JavaThread "http-8080-Processor16" daemon [_thread_blocked, id=2248]
      0x0afbafb8 JavaThread "http-8080-Processor15" daemon [_thread_blocked, id=3852]
      0x0afbae30 JavaThread "http-8080-Processor14" daemon [_thread_blocked, id=576]
      0x0afba4a8 JavaThread "http-8080-Processor13" daemon [_thread_blocked, id=3380]
      0x0b3acaa0 JavaThread "http-8080-Processor12" daemon [_thread_blocked, id=2400]
      0x0aecd398 JavaThread "http-8080-Processor11" daemon [_thread_blocked, id=2376]
      0x0afe49c0 JavaThread "http-8080-Processor10" daemon [_thread_blocked, id=2544]
      0x0b3dbba8 JavaThread "http-8080-Processor9" daemon [_thread_blocked, id=3716]
      0x0b17a808 JavaThread "http-8080-Processor8" daemon [_thread_blocked, id=3252]
      0x0b090590 JavaThread "http-8080-Processor7" daemon [_thread_blocked, id=2628]
      0x0b090408 JavaThread "http-8080-Processor6" daemon [_thread_blocked, id=2176]
      0x0af11530 JavaThread "http-8080-Processor5" daemon [_thread_blocked, id=220]
      0x0b3aeba8 JavaThread "http-8080-Processor4" daemon [_thread_blocked, id=2448]
      0x0b0d11f8 JavaThread "http-8080-Processor3" daemon [_thread_blocked, id=3152]
      0x0b00dba0 JavaThread "http-8080-Processor2" daemon [_thread_blocked, id=3496]
      0x0aee1338 JavaThread "http-8080-Processor1" daemon [_thread_blocked, id=2104]
      0x0b254d10 JavaThread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" daemon [_thread_blocked, id=3040]
      0x0098bd10 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3780]
      0x0098a420 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3864]
      0x00989360 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=800]
      0x009873e8 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=3848]
      0x00986158 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=3684]
      0x00984a70 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=2760]
      0x00970478 JavaThread "Finalizer" daemon [_thread_blocked, id=2884]
      0x0096efe0 JavaThread "Reference Handler" daemon [_thread_blocked, id=868]
      0x003c6b60 JavaThread "main" [_thread_in_native, id=1200]Other Threads:
    =>0x0096c640 VMThread [id=2664]
      0x0098cf48 WatcherThread [id=1468]VM state:at safepoint (normal execution)VM Mutex/Monitor currently owned by a thread:  ([mutex/lock_event])
    [0x003c6238/0x00003718] Threads_lock - owner thread: 0x0096c640
    [0x003c63b8/0x000036dc] Heap_lock - owner thread: 0x0b43f380Heap
     def new generation   total 2304K, used 255K [0x02a30000, 0x02cb0000, 0x02f10000)
      eden space 2048K,   0% used [0x02a30000, 0x02a30000, 0x02c30000)
      from space 256K,  99% used [0x02c70000, 0x02cafff8, 0x02cb0000)
      to   space 256K,   0% used [0x02c30000, 0x02c30000, 0x02c70000)
     tenured generation   total 30288K, used 30243K [0x02f10000, 0x04ca4000, 0x06a30000)
       the space 30288K,  99% used [0x02f10000, 0x04c98ed0, 0x04c99000, 0x04ca4000)
     compacting perm gen  total 21504K, used 21311K [0x06a30000, 0x07f30000, 0x0aa30000)
       the space 21504K,  99% used [0x06a30000, 0x07effc50, 0x07effe00, 0x07f30000)
    No shared spaces configured.Dynamic libraries:
    0x00400000 - 0x0040c000  C:\Program Files\Java\jdk1.5.0_06\bin\javaw.exe
    0x7c920000 - 0x7c9b6000  C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c91e000  C:\WINDOWS\system32\kernel32.dll
    0x77da0000 - 0x77e49000  C:\WINDOWS\system32\ADVAPI32.dll
    0x77e50000 - 0x77ee2000  C:\WINDOWS\system32\RPCRT4.dll
    0x77fc0000 - 0x77fd1000  C:\WINDOWS\system32\Secur32.dll
    0x77d10000 - 0x77da0000  C:\WINDOWS\system32\USER32.dll
    0x77ef0000 - 0x77f39000  C:\WINDOWS\system32\GDI32.dll
    0x77be0000 - 0x77c38000  C:\WINDOWS\system32\MSVCRT.dll
    0x76300000 - 0x7631d000  C:\WINDOWS\system32\IMM32.DLL
    0x62c20000 - 0x62c29000  C:\WINDOWS\system32\LPK.DLL
    0x73fa0000 - 0x7400b000  C:\WINDOWS\system32\USP10.dll
    0x6d6e0000 - 0x6d874000  C:\Program Files\Java\jdk1.5.0_06\jre\bin\client\jvm.dll
    0x76b10000 - 0x76b3a000  C:\WINDOWS\system32\WINMM.dll
    0x6d2f0000 - 0x6d2f8000  C:\Program Files\Java\jdk1.5.0_06\jre\bin\hpi.dll
    0x76bc0000 - 0x76bcb000  C:\WINDOWS\system32\PSAPI.DLL
    0x6d3f0000 - 0x6d425000  C:\Program Files\Java\jdk1.5.0_06\jre\bin\jdwp.dll
    0x6d6b0000 - 0x6d6bc000  C:\Program Files\Java\jdk1.5.0_06\jre\bin\verify.dll
    0x6d370000 - 0x6d38d000  C:\Program Files\Java\jdk1.5.0_06\jre\bin\java.dll
    0x6d6d0000 - 0x6d6df000  C:\Program Files\Java\jdk1.5.0_06\jre\bin\zip.dll
    0x6d290000 - 0x6d297000  C:\Program Files\Java\jdk1.5.0_06\jre\bin\dt_socket.dll
    0x71a20000 - 0x71a37000  C:\WINDOWS\system32\WS2_32.dll
    0x71a10000 - 0x71a18000  C:\WINDOWS\system32\WS2HELP.dll
    0x719c0000 - 0x719fe000  C:\WINDOWS\System32\mswsock.dll
    0x76ef0000 - 0x76f17000  C:\WINDOWS\system32\DNSAPI.dll
    0x76f80000 - 0x76f88000  C:\WINDOWS\System32\winrnr.dll
    0x76f30000 - 0x76f5c000  C:\WINDOWS\system32\WLDAP32.dll
    0x76f90000 - 0x76f96000  C:\WINDOWS\system32\rasadhlp.dll
    0x60fd0000 - 0x61025000  C:\WINDOWS\system32\hnetcfg.dll
    0x71a00000 - 0x71a08000  C:\WINDOWS\System32\wshtcpip.dll
    0x6d530000 - 0x6d543000  C:\Program Files\Java\jdk1.5.0_06\jre\bin\net.dll
    0x68000000 - 0x68036000  C:\WINDOWS\system32\rsaenh.dll
    0x759d0000 - 0x75a7f000  C:\WINDOWS\system32\USERENV.dll
    0x5fdd0000 - 0x5fe26000  C:\WINDOWS\system32\netapi32.dllVM Arguments:
    jvm_args: -Dcatalina.base=D:\eclipse-wtp-3.2-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 -Dcatalina.home=D:\eclipse-wtp-3.2-tomcat\Tomcat 5.0 -Djava.endorsed.dirs=D:\eclipse-wtp-3.2-tomcat\Tomcat 5.0\common\endorsed -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:4270
    java_command: org.apache.catalina.startup.Bootstrap start
    Launcher Type: SUN_STANDARDEnvironment Variables:
    PATH=c:\oracle\product\10.2.0\db_1\bin;C:\Program Files\ThinkPad\Utilities;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\ThinkPad\ConnectUtilities
    USERNAME=Administrator
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 14 Stepping 8, GenuineIntel---------------  S Y S T E M  ---------------OS: Windows XP Build 2600 Service Pack 3CPU:total 2 family 6, cmov, cx8, fxsr, mmx, sse, sse2, htMemory: 4k page, physical 2097151k(1617740k free), swap 4194303k(3216608k free)vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for windows-x86, built on Nov 10 2005 11:12:14 by "java_re" with MS VC++ 6.0
      

  5.   

    直接关了。注销下电脑。重新打开下MyEclipse  看看还有这个问题吗。。一般出现这个问题大部分是内存没有释放造成的
      

  6.   

    我的项目在eclipse下重启都遇过类似情况, 不下10次
      

  7.   

    感觉是tomcat的-XX:PermSize参数配得太小。
      

  8.   

    我也遇到过类似问题.我的是页面调用 可执行程序,可执行程序为直接直行java 命令.没有指明要执行的java 文件 classpath会报次错误.指明后没有发现问题.