1 Reply Latest reply on Nov 14, 2009 1:31 AM by 843829

    Server JVM (1.6.0_01) crashes with JVM EXCEPTION_ACCESS_VIOLATION


      I have seen that a few other posts asking about JVM crashes with EXCEPTION_ACCESS_VIOLATION have got no response, but hope that this post will trigger one.....

      We recently experienced two JVM crashes in quick succession on a production system running 32-bit server JVM 1.6.0_01 on Windows 2003 Server. The immediate cause for this seems to have been the attempt to upload a rather large PPT file (45 MB) through the application - in itself, this should not be a problem since it is a fairly common occurrence in the application (and has never caused a crash for over a year that this JVM has been used) and the same file seems to have been uploaded successfully a short while later.

      I have seen a few bugs filed for this (5040096, 5062728) that talk about it being related to a mismatch in exception handling between the JVM and Windows 2003, but they were all supposedly fixed prior to 1.6, so I am a little puzzled - can anybody shed any light on the matter?


      # An unexpected error has been detected by Java Runtime Environment:
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c82be5e, pid=1340, tid=10468
      # Java VM: Java HotSpot(TM) Server VM (1.6.0_01-b06 mixed mode)
      # Problematic frame:
      # C [ntdll.dll+0x2be5e]
      # 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 (0x4dbdf400): JavaThread "web-7503" [_thread_in_native, id=10468]

      siginfo: ExceptionCode=0xc0000005, reading address 0xc0ad692f

      EAX=0x00000380, EBX=0x00000401, ECX=0x0000037f, EDX=0xc0ad6937
      ESP=0x5243e9b8, EBP=0x5243e9c4, ESI=0x00290178, EDI=0x487b0000
      EIP=0x7c82be5e, EFLAGS=0x00010207

      Top of Stack: (sp=0x5243e9b8)
      0x5243e9b8: 00001002 00290000 00290178 5243ebf0
      0x5243e9c8: 7c82a339 00290178 00001002 00000800
      0x5243e9d8: 00008004 00008004 48fdcda8 00290008
      0x5243e9e8: 48de1018 0543ea18 0000000d 7c833a5e
      0x5243e9f8: 00001200 10143000 00000000 00001002
      0x5243ea08: 5243ea48 00622ca1 487b0000 4e143000
      0x5243ea18: 4e14b010 00622ca1 437a10b8 437a10e0
      0x5243ea28: 5243ea28 0396e34a 5243ea54 039af4e0

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

      Stack: [0x523e0000,0x52440000), sp=0x5243e9b8, free space=378k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [ntdll.dll+0x2be5e]
      C [ntdll.dll+0x2a339]

      C [msvcr71.dll+0x16b3]
      C [msvcr71.dll+0x16db]
      J java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      J java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I
      J macromedia.jdbc.sqlserver.SQLServerByteOrderedDataReader.makeMoreDataAvailable()V
      J macromedia.jdbc.sqlserver.tds.TDSRPCNonCursorExecuteRequest.submitExecute(Lmacromedia/jdbc/sqlserver/SQLServerImplStatement;Lmacromedia/jdbc/base/BaseWarnings;)V
      J macromedia.jdbc.sqlserver.tds.TDSRPCExecuteRequest.execute(Lmacromedia/jdbc/sqlserver/SQLServerImplStatement;Lmacromedia/jdbc/base/BaseWarnings;)V
      J macromedia.jdbc.sqlserver.SQLServerImplStatement.execute()V
      J macromedia.jdbc.base.BasePreparedStatement.executeQuery()Ljava/sql/ResultSet;
      J com.macromedia.airspeed.db.DBConnection.init(Ljava/lang/String;)V
      J com.macromedia.airspeed.Context.populate()V
      J com.macromedia.airspeed.servlet.HTMLHandler.parseResponse(Lcom/macromedia/airspeed/Context;Lcom/macromedia/airspeed/ActionRequest;Lcom/macromedia/airspeed/ActionResponse;Ljavax/servlet/http/HttpServletResponse;)V
      j com.macromedia.airspeed.servlet.MultipartHandler.parseResponse(Lcom/macromedia/airspeed/Context;Lcom/macromedia/airspeed/ActionRequest;Lcom/macromedia/airspeed/ActionResponse;Ljavax/servlet/http/HttpServletResponse;)V+9
      J com.macromedia.airspeed.servlet.BaseServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
      J jrun.servlet.JRunInvokerChain.invokeNext(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V
      J jrun.servlet.JRunRequestDispatcher.invoke(Ljrun/servlet/ServletConnection;)V
      J jrunx.scheduler.WorkerThread.run()V
      v ~StubRoutines::call_stub

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

      Java Threads: ( => current thread )
      0x4ee2f800 JavaThread "web-7539" [_thread_blocked, id=15264]
      0x48b32400 JavaThread "web-41682" [_thread_blocked, id=22452]
      0x4e42fc00 JavaThread "web-41681" [_thread_blocked, id=30600]
      =>0x4dbdf400 JavaThread "web-7503" [_thread_in_native, id=10468]
      Other Threads:
      0x47cf0c00 VMThread [id=1568]
      0x484a3800 WatcherThread [id=3232]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Dynamic libraries:
      0x00400000 - 0x00423000      E:\breeze\appserv\win32\jre\bin\java.exe
      0x7c800000 - 0x7c8c2000      C:\WINDOWS\system32\ntdll.dll
      0x77e40000 - 0x77f42000      C:\WINDOWS\system32\kernel32.dll
      0x7d1e0000 - 0x7d27c000      C:\WINDOWS\system32\ADVAPI32.dll
      0x77c50000 - 0x77cef000      C:\WINDOWS\system32\RPCRT4.dll
      0x76f50000 - 0x76f63000      C:\WINDOWS\system32\Secur32.dll
      0x7c340000 - 0x7c396000      E:\breeze\appserv\win32\jre\bin\msvcr71.dll
      0x6dac0000 - 0x6ddf5000      E:\breeze\appserv\win32\jre\bin\server\jvm.dll
      0x77380000 - 0x77411000      C:\WINDOWS\system32\USER32.dll
      0x77c00000 - 0x77c49000      C:\WINDOWS\system32\GDI32.dll
      0x76aa0000 - 0x76acd000      C:\WINDOWS\system32\WINMM.dll
      0x76290000 - 0x762ad000      C:\WINDOWS\system32\IMM32.DLL
      0x6d310000 - 0x6d318000      E:\breeze\appserv\win32\jre\bin\hpi.dll
      0x76b70000 - 0x76b7b000      C:\WINDOWS\system32\PSAPI.DLL
      0x6d770000 - 0x6d77c000      E:\breeze\appserv\win32\jre\bin\verify.dll
      0x6d3b0000 - 0x6d3cf000      E:\breeze\appserv\win32\jre\bin\java.dll
      0x6d7b0000 - 0x6d7bf000      E:\breeze\appserv\win32\jre\bin\zip.dll

      VM Arguments:
      jvm_args: -Xms1024m -Xmx1024m -Xmn250m -Xss330k -Dapplication.home=..\ -Djmx.invoke.getters=true -Dsun.io.useCanonCaches=false -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol -Dlibrary.service=WIN32 -verbose:gc -XX:+DisableExplicitGC -XX:+ForceTimeHighResolution -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:{application.home}/../logs/gc.log -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=4111 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dorg.tanukisoftware.wrapper.WrapperManager.mbean=true -Djava.library.path=..\lib -Dwrapper.key=30lgV7JHlIZHVPO4BeAqyjBq1kN5f5Yw -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=1216 -Dwrapper.version=3.3.3-st -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1
      java_command: org.tanukisoftware.wrapper.WrapperStartStopApp com.macromedia.airspeed.main.Main 0 com.macromedia.airspeed.main.Main true 1 -stop
      Launcher Type: SUN_STANDARD

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

      OS: Windows Server 2003 family Build 3790 Service Pack 2

      CPU:total 4 family 6, cmov, cx8, fxsr, mmx, sse, sse2

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

      vm_info: Java HotSpot(TM) Server VM (1.6.0_01-b06) for windows-x86, built on Mar 14 2007 00:20:01 by "java_re" with unknown MS VC++:1310
        • 1. Re: Server JVM (1.6.0_01) crashes with JVM EXCEPTION_ACCESS_VIOLATION
          +{color:#0000ff}Hello Srini,+

          I am sure, I will be able to help you if you can provide me more details about the machine setup. Like what is the  RAM, is it windows 2003 Standards or Windows 2003 Enterprise.
          In short details for the machine

          Now coming to JVM.
          What is the JVM options you are using, is the JVM crash having a pattern or is it happening randomly.
          What is the load on the box when this happens. Is the app CPU intensive or RAM intensive.

          +Ruchir {color}+