Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7146950

stress test on POI 2.5.1 excel generation cause crash

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_7

      Description

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      HSSFWorkbook workbook = new HSSFWorkbook();
      HSSFSheet sheet = workbook.createSheet();
      int rows = 60000;
      int columns = 100;
      int round = 0;
      long totalCost = 0;
      for (int x = 1; x < 200; x++) {
      round++;
      long start = System.currentTimeMillis();
      for (int i = 1; i < rows; i++) {
      HSSFRow row = sheet.createRow((short) i);
      for (int j = 1; j < columns; j++) {
      HSSFCell cell = row.createCell((short) j);
      cell.setCellValue(new String("test" + j));
      }
      }
      String file = "x:\\timesheet.xls";
      FileOutputStream out;
      try {
      out = new FileOutputStream(file);
      workbook.write(out);
      out.close();
      } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      }

      long end = System.currentTimeMillis();
      long cost = end - start;
      totalCost += cost;
      System.out.println(cost);
      }
      System.out.println("total cost:" + totalCost);
      System.out.println("average cost:" + totalCost / round);

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      http://bugreport.sun.com/bugreport/crash.jsp


      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=6260, tid=4344
      #
      # JRE version: 7.0_04-b10
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b12 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # C 0x0000000000000000
      #
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      #

      --------------- T H R E A D ---------------

      Current thread (0x0000000002106000): VMThread [stack: 0x000000000a080000,0x000000000a180000] [id=4344]

      siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x0000000000000008 0x0000000000000000

      Registers:
      RAX=0x0000000000f9c3c8, RBX=0x0000000030b3e680, RCX=0x00000000011742b8, RDX=0x0000000030b3e680
      RSP=0x000000000a17f5c8, RBP=0x0000000000000000, RSI=0x000000000205a780, RDI=0x000000000aed7790
      R8 =0x0000000000000001, R9 =0x000000000000000c, R10=0x0000000000000000, R11=0x00000000010e0d60
      R12=0x000000000205a6f0, R13=0x000000000217c770, R14=0x000000000205b8a0, R15=0x0000000000000012
      RIP=0x0000000000000000, EFLAGS=0x0000000000010202

        Top of Stack: (sp=0x000000000a17f5c8)
      0x000000000a17f5c8: 000000006fbf520a 0000000730b2d6f0
      0x000000000a17f5d8: 0000000000000000 000000000aed7790
      0x000000000a17f5e8: 000000000aed7790 0000000070062290
      0x000000000a17f5f8: 000000006fd44dab 000000000205a780
      0x000000000a17f608: 0000000000000000 000000000a17f790
      0x000000000a17f618: 0000000070062290 0000000002177b00
      0x000000000a17f628: 000000006fa25ffa 000000006fef5490
      0x000000000a17f638: 0000000000000000 0000000070062290
      0x000000000a17f648: 0000000000000001 0000000002010100
      0x000000000a17f658: 0000000000000000 00000000a6aafff0
      0x000000000a17f668: 000000000205b800 000000000217c770
      0x000000000a17f678: 0000000002177b00 000000000217a2f0
      0x000000000a17f688: 000000006fd458a0 0000000002103001
      0x000000000a17f698: 0000000000000000 000000000205a780
      0x000000000a17f6a8: 000000000217a2f0 0000000002177b01
      0x000000000a17f6b8: 000000004c05ad01 00000000a6ab0001

      Instructions: (pc=0x0000000000000000)
      0x00000000ffffffe0:


      Register to memory mapping:

      RAX=0x0000000000f9c3c8 is an oop
      {instance class}
       - klass: {other class}
      RBX=
      [error occurred during error reporting (printing register info), id 0xc0000005]

      Stack: [0x000000000a080000,0x000000000a180000], sp=0x000000000a17f5c8, free space=1021k
      VM_Operation (0x00000000024ff260): ParallelGCFailedAllocation, mode: safepoint, requested by thread 0x000000000217b000


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

      Java Threads: ( => current thread )
        0x0000000009c2c000 JavaThread "Service Thread" daemon [_thread_blocked, id=5752, stack(0x000000000a580000,0x000000000a680000)]
        0x0000000009c23000 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=2372, stack(0x000000000abd0000,0x000000000acd0000)]
        0x0000000009c22800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=6480, stack(0x000000000a9a0000,0x000000000aaa0000)]
        0x0000000009c20000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=3368, stack(0x000000000a7f0000,0x000000000a8f0000)]
        0x0000000009c16800 JavaThread "Attach Listener" daemon [_thread_blocked, id=5024, stack(0x000000000a6c0000,0x000000000a7c0000)]
        0x0000000009c11800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5148, stack(0x000000000a430000,0x000000000a530000)]
        0x0000000002115800 JavaThread "Finalizer" daemon [_thread_blocked, id=7304, stack(0x000000000a320000,0x000000000a420000)]
        0x000000000210f000 JavaThread "Reference Handler" daemon [_thread_blocked, id=1240, stack(0x000000000a190000,0x000000000a290000)]
        0x000000000217b000 JavaThread "main" [_thread_blocked, id=4864, stack(0x0000000002400000,0x0000000002500000)]

      Other Threads:
      =>0x0000000002106000 VMThread [stack: 0x000000000a080000,0x000000000a180000] [id=4344]
        0x0000000009c44800 WatcherThread [stack: 0x000000000ad20000,0x000000000ae20000] [id=4000]

      VM state:at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
      [0x00000000021792f0] Threads_lock - owner thread: 0x0000000002106000
      [0x00000000021797f0] Heap_lock - owner thread: 0x000000000217b000

      Heap
       PSYoungGen total 1194688K, used 1024064K [0x00000000acab0000, 0x0000000000000000, 0x0000000000000000)
        eden space 1024064K, 100% used [0x00000000acab0000,0x00000000eb2c0000,0x00000000eb2c0000)
        from space 170624K, 0% used [0x00000000eb2c0000,0x00000000eb2c0000,0x00000000f5960000)
        to space 170624K, 0% used [0x00000000f5960000,0x00000000f5960000,0x0000000000000000)
       PSOldGen total 2730688K, used 2730687K [0x0000000006000000, 0x00000000acab0000, 0x00000000acab0000)
        object space 2730688K, 99% used [0x0000000006000000,0x00000000acaafff0,0x00000000acab0000)
       PSPermGen total 21248K, used 3946K [0x0000000000e00000, 0x00000000022c0000, 0x0000000006000000)
        object space 21248K, 18% used [0x0000000000e00000,0x00000000011da828,0x00000000022c0000)

      Code Cache [0x0000000002500000, 0x0000000002770000, 0x0000000008500000)
       total_blobs=670 nmethods=448 adapters=140 free_code_cache=96486Kb largest_free_block=98764480

      Dynamic libraries:
      0x000000003f390000 - 0x000000003f3c3000 X:\jdk\bin\javaw.exe
      0x00000000771f0000 - 0x0000000077399000 C:\Windows\SYSTEM32\ntdll.dll
      0x0000000076f70000 - 0x000000007708f000 C:\Windows\system32\kernel32.dll
      0x00000000fd9b0000 - 0x00000000fda1c000 C:\Windows\system32\KERNELBASE.dll
      0x00000000ff3f0000 - 0x00000000ff4cb000 C:\Windows\system32\ADVAPI32.dll
      0x00000000fe960000 - 0x00000000fe9ff000 C:\Windows\system32\msvcrt.dll
      0x00000000ff4d0000 - 0x00000000ff4ef000 C:\Windows\SYSTEM32\sechost.dll
      0x00000000fe830000 - 0x00000000fe95d000 C:\Windows\system32\RPCRT4.dll
      0x0000000076e70000 - 0x0000000076f6a000 C:\Windows\system32\USER32.dll
      0x00000000ff380000 - 0x00000000ff3e7000 C:\Windows\system32\GDI32.dll
      0x00000000fda20000 - 0x00000000fda2e000 C:\Windows\system32\LPK.dll
      0x00000000fec20000 - 0x00000000fece9000 C:\Windows\system32\USP10.dll
      0x00000000fc070000 - 0x00000000fc264000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
      0x00000000fecf0000 - 0x00000000fed61000 C:\Windows\system32\SHLWAPI.dll
      0x00000000ff110000 - 0x00000000ff13e000 C:\Windows\system32\IMM32.DLL
      0x00000000fedf0000 - 0x00000000feef9000 C:\Windows\system32\MSCTF.dll
      0x0000000068fd0000 - 0x00000000690a1000 X:\jdk\jre\bin\msvcr100.dll
      0x000000006f9f0000 - 0x0000000070105000 X:\jdk\jre\bin\server\jvm.dll
      0x00000000f5c80000 - 0x00000000f5c89000 C:\Windows\system32\WSOCK32.dll
      0x00000000fda50000 - 0x00000000fda9d000 C:\Windows\system32\WS2_32.dll
      0x00000000ff4f0000 - 0x00000000ff4f8000 C:\Windows\system32\NSI.dll
      0x00000000fb480000 - 0x00000000fb4bb000 C:\Windows\system32\WINMM.dll
      0x00000000773c0000 - 0x00000000773c7000 C:\Windows\system32\PSAPI.DLL
      0x00000000730c0000 - 0x00000000730cf000 X:\jdk\jre\bin\verify.dll
      0x0000000073090000 - 0x00000000730b8000 X:\jdk\jre\bin\java.dll
      0x0000000073070000 - 0x0000000073085000 X:\jdk\jre\bin\zip.dll
      0x00000000fb4c0000 - 0x00000000fb5e5000 C:\Windows\system32\dbghelp.dll

      VM Arguments:
      jvm_args: -Xms4000m -Xmx4000m -Dfile.encoding=UTF-8
      java_command: GenerateHugeDataTest
      Launcher Type: SUN_STANDARD

      Environment Variables:
      JAVA_HOME=x:\jdk
      OS=Windows_NT
      PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 2, GenuineIntel



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

      OS: Windows 7 , 64 bit Build 7601 Service Pack 1

      CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 37 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht, tsc, tscinvbit

      Memory: 4k page, physical 12442744k(1102816k free), swap 12440896k(708604k free)

      vm_info: Java HotSpot(TM) 64-Bit Server VM (23.0-b12) for windows-amd64 JRE (1.7.0_04-ea-b10), built on Feb 2 2012 02:19:09 by "java_re" with unknown MS VC++:1600

      time: Sun Feb 19 17:15:56 2012
      elapsed time: 1460 seconds


      #-----------------------------------------------------------#APPLET URL OR APPLICATION NAME:
      http://poi.apache.org/

        Attachments

          Activity

            People

            Assignee:
            mseledtsov Mikhailo Seledtsov
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: