5 Replies Latest reply: Mar 7, 2014 2:12 PM by ctoomey RSS

    Enabling JFR causes crash on startup

    ctoomey

      We're trying to use JFR/JMC on an Amazon EC2 server running RHEL6 but when we add the options -XX:+UnlockCommercialFeatures -XX:+FlightRecorder, java crashes and core dumps on startup.  This happens regardless of which program we run, even when we just run java with no program (java -XX:+UnlockCommercialFeatures -XX:+FlightRecorder).  When we remove those flags it works normally.

       

      Is this a known issue and is there any known workaround or fix in a new release?  I've filed a bug on this but didn't get a link to track it or anything and get the feeling it went into a black hole.  Here's the output.  Thanks for any suggestions.

       

      Chris

       

      #

      # A fatal error has been detected by the Java Runtime Environment:

      #

      #  SIGFPE (0x8) at pc=0x00007f205a190bef, pid=28845, tid=139776917186304

      #

      # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)

      # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)

      # Problematic frame:

      # V  [libjvm.so+0x99dbef]  VM_Version_Ext::resolve_cpu_information_details()+0x5f

      #

        • 1. Re: Enabling JFR causes crash on startup
          806894

          There seems to be a similar exception https://bugs.openjdk.java.net/browse/JDK-8033717 with Open JDK at the same time, may be we should attach the dump for investigation?

          • 2. Re: Enabling JFR causes crash on startup
            Markus Gronlund

            Hi,

             

            do you have a hs_err_pid<pid>.log that you could attach or maybe you can create a bug for this in http://bugs.openjdk.java.net and attach the hs_err.log file there?

             

            The code that is crashing is trying to determine the CPU layout of the machine, and it does this by using certain Hotspot APIs such as:

             

            ...

             

            int threads_per_package = threads_per_core() * cores_per_cpu();

             

            then it proceeds with trying to determine the layout per cpu, something like:

             

            os::number_of_threads() / threads_per_package; // div by zero

             

             

            Looks like the CPU information reported up to Hotspot from the virtualization and the OS gives zero for either the number of threads per core or/and number of cores_per_cpu().

             

            Currently this division is unchecked as we expect to read out at this information correctly - this might not be the case for certain virtualization solutions.

             

            I would like, if possible, to see a hs_err_pid.log file (this has details on the CPU information reported from the system to Hotspot).

             

            In addition I will add a NULL check before attempting the division above.

             

            Thanks for reporting this.

            Markus

            • 3. Re: Enabling JFR causes crash on startup
              ctoomey

              Thanks for your reply Markus.  I don't have an account to report the bug, so here's the log file.

               

               

              Chris

               

              #

              # A fatal error has been detected by the Java Runtime Environment:

              #

              #  SIGFPE (0x8) at pc=0x00007f205a190bef, pid=28845, tid=139776917186304

              #

              # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)

              # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode linux-amd64 compressed oops)

              # Problematic frame:

              # V  [libjvm.so+0x99dbef]  VM_Version_Ext::resolve_cpu_information_details()+0x5f

              #

              # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

              #

              # 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 (0x00007f2054008800):  JavaThread "main" [_thread_in_vm, id=28846, stack(0x00007f20596f2000,0x00007f20597f3000)]

               

               

              siginfo:si_signo=SIGFPE: si_errno=0, si_code=1 (FPE_INTDIV), si_addr=0x00007f205a190bef

               

               

              Registers:

              RAX=0x0000000000000002, RBX=0x00007f2054082300, RCX=0x0000000000000000, RDX=0x0000000000000000

              RSP=0x00007f20597f1a80, RBP=0x00007f20597f1a80, RSI=0x00000000756e6547, RDI=0x00007f205a6478a0

              R8 =0x0000000000000002, R9 =0x0000000000000001, R10=0x0000000000000002, R11=0x0000000000000000

              R12=0x00007f20540822b0, R13=0x00007f2054008800, R14=0x00007f2054008ee0, R15=0x0000000000000000

              RIP=0x00007f205a190bef, EFLAGS=0x0000000000010246, CSGSFS=0x0000000000000033, ERR=0x0000000000000000

                TRAPNO=0x0000000000000000

               

               

              Top of Stack: (sp=0x00007f20597f1a80)

              0x00007f20597f1a80:   00007f20597f1a90 00007f205a190d93

              0x00007f20597f1a90:   00007f20597f1ab0 00007f205a00e12f

              0x00007f20597f1aa0:   00007f20540822b0 00007f2054082300

              0x00007f20597f1ab0:   00007f20597f1ad0 00007f2059e00d70

              0x00007f20597f1ac0:   00007f20540822b0 00007f20540822e0

              0x00007f20597f1ad0:   00007f20597f1af0 00007f2059e00df9

              0x00007f20597f1ae0:   00007f20540822e0 00007f2054008800

              0x00007f20597f1af0:   00007f20597f1b10 00007f2059df7605

              0x00007f20597f1b00:   00007f20540815b0 00007f20540815e0

              0x00007f20597f1b10:   00007f20597f1b30 00007f2059df7985

              0x00007f20597f1b20:   00007f2054008800 00007f2054008ed0

              0x00007f20597f1b30:   00007f20597f1b60 00007f2059e1f607

              0x00007f20597f1b40:   00007f2054008ee0 0000000000000000

              0x00007f20597f1b50:   00007f20597f1b60 00007f2054008ed0

              0x00007f20597f1b60:   00007f20597f1d80 00007f205a142771

              0x00007f20597f1b70:   00007f2054008800 00007f2054008800

              0x00007f20597f1b80:   00007f20597f1bc0 00007f20597f1c60

              0x00007f20597f1b90:   00007f20597f1c30 00007f20597f1d40

              0x00007f20597f1ba0:   00007f20597f1c00 00007f20597f1cf0

              0x00007f20597f1bb0:   00007f205a2124e1 00007f2054008d78

              0x00007f20597f1bc0:   00007f2054008800 00007f20540073c0

              0x00007f20597f1bd0:   00007f2054008d30 00007f2054008d40

              0x00007f20597f1be0:   00007f2054009118 00000000000003d8

              0x00007f20597f1bf0:   00007f2054007400 00007f20597f1dc0

              0x00007f20597f1c00:   00007f2054007340 00007f2054006df0

              0x00007f20597f1c10:   00007f2054006e00 00007f20540071d8

              0x00007f20597f1c20:   00000000000003d8 0000000000000000

              0x00007f20597f1c30:   0000000000000100 0000000000000000

              0x00007f20597f1c40:   00007f205a87e720 0000000000000000

              0x00007f20597f1c50:   00007f205a65b1c8 00007f205a8739b0

              0x00007f20597f1c60:   0000003cd5200100 0000000000000000

              0x00007f20597f1c70:   0000003cd5201050 0000000500000000

               

               

              Instructions: (pc=0x00007f205a190bef)

              0x00007f205a190bcf:   75 0f 84 fa 00 00 00 81 fe 41 75 74 68 b8 01 00

              0x00007f205a190bdf:   00 00 74 6d 0f af c8 44 89 d2 44 89 d0 c1 fa 1f

              0x00007f205a190bef:   f7 f9 41 89 c0 b8 01 00 00 00 45 85 c0 41 0f 45

              0x00007f205a190bff:   c0 81 fe 47 65 6e 75 89 05 44 6c 4b 00 74 52 81

               

               

              Register to memory mapping:

               

               

              RAX=0x0000000000000002 is an unknown value

              RBX=0x00007f2054082300 is an unknown value

              RCX=0x0000000000000000 is an unknown value

              RDX=0x0000000000000000 is an unknown value

              RSP=0x00007f20597f1a80 is pointing into the stack for thread: 0x00007f2054008800

              RBP=0x00007f20597f1a80 is pointing into the stack for thread: 0x00007f2054008800

              RSI=0x00000000756e6547 is an unknown value

              RDI=0x00007f205a6478a0: <offset 0xe548a0> in /usr/java/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so at 0x00007f20597f3000

              R8 =0x0000000000000002 is an unknown value

              R9 =0x0000000000000001 is an unknown value

              R10=0x0000000000000002 is an unknown value

              R11=0x0000000000000000 is an unknown value

              R12=0x00007f20540822b0 is an unknown value

              R13=0x00007f2054008800 is a thread

              R14=0x00007f2054008ee0 is an unknown value

              R15=0x0000000000000000 is an unknown value

               

               

               

               

              Stack: [0x00007f20596f2000,0x00007f20597f3000],  sp=0x00007f20597f1a80,  free space=1022k

              Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

              V  [libjvm.so+0x99dbef]  VM_Version_Ext::resolve_cpu_information_details()+0x5f

              V  [libjvm.so+0x99dd93]  VM_Version_Ext::number_of_threads()+0x13

              V  [libjvm.so+0x81b12f]  CPUInformationInterface::CPUInformationInterface()+0x5f

              V  [libjvm.so+0x60dd70]  JfrOSInterface::JfrOSInterfaceImpl::JfrOSInterfaceImpl()+0x30

              V  [libjvm.so+0x60ddf9]  JfrOSInterface::JfrOSInterface()+0x39

              V  [libjvm.so+0x604605]  Jfr::initialize_os_interface_system()+0x25

              V  [libjvm.so+0x604985]  Jfr::initialization_by_vm_start()+0x115

              V  [libjvm.so+0x62c607]  jfr_initialize_stage_one()+0x127

              V  [libjvm.so+0x94f771]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x9d1

              V  [libjvm.so+0x6307e4]  JNI_CreateJavaVM+0x74

              C  [libjli.so+0x2f8e]  JavaMain+0x9e

               

               

               

               

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

               

               

              Java Threads: ( => current thread )

                0x00007f205406a000 JavaThread "Finalizer" daemon [_thread_blocked, id=28851, stack(0x00007f2050189000,0x00007f205028a000)]

                0x00007f2054066000 JavaThread "Reference Handler" daemon [_thread_blocked, id=28850, stack(0x00007f205028a000,0x00007f205038b000)]

              =>0x00007f2054008800 JavaThread "main" [_thread_in_vm, id=28846, stack(0x00007f20596f2000,0x00007f20597f3000)]

               

               

              Other Threads:

                0x00007f2054063800 VMThread [stack: 0x00007f205038b000,0x00007f205048c000] [id=28849]

               

               

              VM state:not at safepoint (normal execution)

               

               

              VM Mutex/Monitor currently owned by a thread: None

               

               

              Heap

              PSYoungGen      total 35328K, used 614K [0x00000000d8f00000, 0x00000000db600000, 0x0000000100000000)

                eden space 30720K, 2% used [0x00000000d8f00000,0x00000000d8f99a08,0x00000000dad00000)

                from space 4608K, 0% used [0x00000000db180000,0x00000000db180000,0x00000000db600000)

                to   space 4608K, 0% used [0x00000000dad00000,0x00000000dad00000,0x00000000db180000)

              ParOldGen       total 79872K, used 0K [0x000000008ae00000, 0x000000008fc00000, 0x00000000d8f00000)

                object space 79872K, 0% used [0x000000008ae00000,0x000000008ae00000,0x000000008fc00000)

              PSPermGen       total 21504K, used 1634K [0x0000000085c00000, 0x0000000087100000, 0x000000008ae00000)

                object space 21504K, 7% used [0x0000000085c00000,0x0000000085d988b0,0x0000000087100000)

               

               

              Card table byte_map: [0x00007f20589f3000,0x00007f2058dc6000] byte_map_base: 0x00007f20585c5000

               

               

              Polling page: 0x00007f205a87d000

               

               

              Code Cache  [0x00007f2051000000, 0x00007f2051270000, 0x00007f2054000000)

              total_blobs=141 nmethods=0 adapters=110 free_code_cache=48786Kb largest_free_block=49957696

               

               

              Compilation events (0 events):

              No events

               

               

              GC Heap History (0 events):

              No events

               

               

              Deoptimization events (0 events):

              No events

               

               

              Internal exceptions (1 events):

              Event: 0.020 Thread 0x00007f2054008800 Threw 0x00000000d8f102e8 at /HUDSON/workspace/7u-2-build-linux-amd64@2/jdk7u51/527/hotspot/src/share/vm/prims/jni.cpp:3991

               

               

              Events (10 events):

              Event: 0.029 loading class 0x00007f20580e9d00

              Event: 0.029 loading class 0x00007f20580f0400

              Event: 0.029 loading class 0x00007f20580f0400 done

              Event: 0.029 loading class 0x00007f20580e9d00 done

              Event: 0.029 loading class 0x00007f20580dbef0

              Event: 0.029 loading class 0x00007f20580dbef0 done

              Event: 0.029 loading class 0x00007f20580db970

              Event: 0.029 loading class 0x00007f20580db970 done

              Event: 0.029 loading class 0x00007f205811bf00

              Event: 0.029 loading class 0x00007f205811bf00 done

               

               

               

               

              Dynamic libraries:

              00400000-00401000 r-xp 00000000 ca:01 148333                             /usr/java/jdk1.7.0_51/bin/java

              00600000-00601000 rw-p 00000000 ca:01 148333                             /usr/java/jdk1.7.0_51/bin/java

              01356000-01377000 rw-p 00000000 00:00 0                                  [heap]

              85c00000-87100000 rw-p 00000000 00:00 0

              87100000-8ae00000 rw-p 00000000 00:00 0

              8ae00000-8fc00000 rw-p 00000000 00:00 0

              8fc00000-d8f00000 rw-p 00000000 00:00 0

              d8f00000-db600000 rw-p 00000000 00:00 0

              db600000-100000000 rw-p 00000000 00:00 0

              3cd4600000-3cd4620000 r-xp 00000000 ca:01 14854                          /lib64/ld-2.12.so

              3cd481f000-3cd4820000 r--p 0001f000 ca:01 14854                          /lib64/ld-2.12.so

              3cd4820000-3cd4821000 rw-p 00020000 ca:01 14854                          /lib64/ld-2.12.so

              3cd4821000-3cd4822000 rw-p 00000000 00:00 0

              3cd4a00000-3cd4a02000 r-xp 00000000 ca:01 14862                          /lib64/libdl-2.12.so

              3cd4a02000-3cd4c02000 ---p 00002000 ca:01 14862                          /lib64/libdl-2.12.so

              3cd4c02000-3cd4c03000 r--p 00002000 ca:01 14862                          /lib64/libdl-2.12.so

              3cd4c03000-3cd4c04000 rw-p 00003000 ca:01 14862                          /lib64/libdl-2.12.so

              3cd4e00000-3cd4f8b000 r-xp 00000000 ca:01 14855                          /lib64/libc-2.12.so

              3cd4f8b000-3cd518a000 ---p 0018b000 ca:01 14855                          /lib64/libc-2.12.so

              3cd518a000-3cd518e000 r--p 0018a000 ca:01 14855                          /lib64/libc-2.12.so

              3cd518e000-3cd518f000 rw-p 0018e000 ca:01 14855                          /lib64/libc-2.12.so

              3cd518f000-3cd5194000 rw-p 00000000 00:00 0

              3cd5200000-3cd5217000 r-xp 00000000 ca:01 13075                          /lib64/libpthread-2.12.so

              3cd5217000-3cd5417000 ---p 00017000 ca:01 13075                          /lib64/libpthread-2.12.so

              3cd5417000-3cd5418000 r--p 00017000 ca:01 13075                          /lib64/libpthread-2.12.so

              3cd5418000-3cd5419000 rw-p 00018000 ca:01 13075                          /lib64/libpthread-2.12.so

              3cd5419000-3cd541d000 rw-p 00000000 00:00 0

              3cd5600000-3cd5607000 r-xp 00000000 ca:01 5191                           /lib64/librt-2.12.so

              3cd5607000-3cd5806000 ---p 00007000 ca:01 5191                           /lib64/librt-2.12.so

              3cd5806000-3cd5807000 r--p 00006000 ca:01 5191                           /lib64/librt-2.12.so

              3cd5807000-3cd5808000 rw-p 00007000 ca:01 5191                           /lib64/librt-2.12.so

              3cd5e00000-3cd5e83000 r-xp 00000000 ca:01 14856                          /lib64/libm-2.12.so

              3cd5e83000-3cd6082000 ---p 00083000 ca:01 14856                          /lib64/libm-2.12.so

              3cd6082000-3cd6083000 r--p 00082000 ca:01 14856                          /lib64/libm-2.12.so

              3cd6083000-3cd6084000 rw-p 00083000 ca:01 14856                          /lib64/libm-2.12.so

              7f20318ed000-7f203216f000 rw-p 00000000 00:00 0

              7f203216f000-7f2038000000 r--p 00000000 ca:01 3470                       /usr/lib/locale/locale-archive

              7f2038000000-7f2038021000 rw-p 00000000 00:00 0

              7f2038021000-7f203c000000 ---p 00000000 00:00 0

              7f203c000000-7f203c021000 rw-p 00000000 00:00 0

              7f203c021000-7f2040000000 ---p 00000000 00:00 0

              7f2040000000-7f2040021000 rw-p 00000000 00:00 0

              7f2040021000-7f2044000000 ---p 00000000 00:00 0

              7f2044000000-7f2044021000 rw-p 00000000 00:00 0

              7f2044021000-7f2048000000 ---p 00000000 00:00 0

              7f2048034000-7f204c000000 rw-p 00000000 00:00 0

              7f204c000000-7f204c021000 rw-p 00000000 00:00 0

              7f204c021000-7f2050000000 ---p 00000000 00:00 0

              7f2050033000-7f2050189000 rw-p 00000000 00:00 0

              7f2050189000-7f205018c000 ---p 00000000 00:00 0

              7f205018c000-7f205028a000 rw-p 00000000 00:00 0

              7f205028a000-7f205028d000 ---p 00000000 00:00 0

              7f205028d000-7f205038b000 rw-p 00000000 00:00 0

              7f205038b000-7f205038c000 ---p 00000000 00:00 0

              7f205038c000-7f2050e43000 rw-p 00000000 00:00 0

              7f2050e43000-7f2051000000 r--s 039bf000 ca:01 273711                     /usr/java/jdk1.7.0_51/jre/lib/rt.jar

              7f2051000000-7f2051270000 rwxp 00000000 00:00 0

              7f2051270000-7f2054091000 rw-p 00000000 00:00 0

              7f2054091000-7f2058000000 ---p 00000000 00:00 0

              7f2058065000-7f2058557000 rw-p 00000000 00:00 0

              7f2058557000-7f2058558000 ---p 00000000 00:00 0

              7f2058558000-7f2058658000 rw-p 00000000 00:00 0

              7f2058658000-7f2058659000 ---p 00000000 00:00 0

              7f2058659000-7f2058764000 rw-p 00000000 00:00 0

              7f2058764000-7f2058782000 rw-p 00000000 00:00 0

              7f2058782000-7f20587a9000 rw-p 00000000 00:00 0

              7f20587a9000-7f20589f3000 rw-p 00000000 00:00 0

              7f20589f3000-7f20589fe000 rw-p 00000000 00:00 0

              7f20589fe000-7f2058a1c000 rw-p 00000000 00:00 0

              7f2058a1c000-7f2058a43000 rw-p 00000000 00:00 0

              7f2058a43000-7f2058c8c000 rw-p 00000000 00:00 0

              7f2058c8c000-7f2058ca0000 rw-p 00000000 00:00 0

              7f2058ca0000-7f2058dc5000 rw-p 00000000 00:00 0

              7f2058dc5000-7f2058dd0000 rw-p 00000000 00:00 0

              7f2058dd0000-7f2058e86000 rw-p 00000000 00:00 0

              7f2058e86000-7f2058ea0000 r-xp 00000000 ca:01 271976                     /usr/java/jdk1.7.0_51/jre/lib/amd64/libzip.so

              7f2058ea0000-7f20590a0000 ---p 0001a000 ca:01 271976                     /usr/java/jdk1.7.0_51/jre/lib/amd64/libzip.so

              7f20590a0000-7f20590a1000 rw-p 0001a000 ca:01 271976                     /usr/java/jdk1.7.0_51/jre/lib/amd64/libzip.so

              7f20590a1000-7f20590ad000 r-xp 00000000 ca:01 3493                       /lib64/libnss_files-2.12.so

              7f20590ad000-7f20592ad000 ---p 0000c000 ca:01 3493                       /lib64/libnss_files-2.12.so

              7f20592ad000-7f20592ae000 r--p 0000c000 ca:01 3493                       /lib64/libnss_files-2.12.so

              7f20592ae000-7f20592af000 rw-p 0000d000 ca:01 3493                       /lib64/libnss_files-2.12.so

              7f20592b8000-7f20592b9000 rw-p 00000000 00:00 0

              7f20592b9000-7f20592e2000 r-xp 00000000 ca:01 271946                     /usr/java/jdk1.7.0_51/jre/lib/amd64/libjava.so

              7f20592e2000-7f20594e2000 ---p 00029000 ca:01 271946                     /usr/java/jdk1.7.0_51/jre/lib/amd64/libjava.so

              7f20594e2000-7f20594e4000 rw-p 00029000 ca:01 271946                     /usr/java/jdk1.7.0_51/jre/lib/amd64/libjava.so

              7f20594e4000-7f20594f1000 r-xp 00000000 ca:01 271975                     /usr/java/jdk1.7.0_51/jre/lib/amd64/libverify.so

              7f20594f1000-7f20596f0000 ---p 0000d000 ca:01 271975                     /usr/java/jdk1.7.0_51/jre/lib/amd64/libverify.so

              7f20596f0000-7f20596f2000 rw-p 0000c000 ca:01 271975                     /usr/java/jdk1.7.0_51/jre/lib/amd64/libverify.so

              7f20596f2000-7f20596f5000 ---p 00000000 00:00 0

              7f20596f5000-7f20597f3000 rw-p 00000000 00:00 0

              7f20597f3000-7f205a355000 r-xp 00000000 ca:01 271980                     /usr/java/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so

              7f205a355000-7f205a555000 ---p 00b62000 ca:01 271980                     /usr/java/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so

              7f205a555000-7f205a618000 rw-p 00b62000 ca:01 271980                     /usr/java/jdk1.7.0_51/jre/lib/amd64/server/libjvm.so

              7f205a618000-7f205a65c000 rw-p 00000000 00:00 0

              7f205a65c000-7f205a672000 r-xp 00000000 ca:01 272697                     /usr/java/jdk1.7.0_51/lib/amd64/jli/libjli.so

              7f205a672000-7f205a872000 ---p 00016000 ca:01 272697                     /usr/java/jdk1.7.0_51/lib/amd64/jli/libjli.so

              7f205a872000-7f205a873000 rw-p 00016000 ca:01 272697                     /usr/java/jdk1.7.0_51/lib/amd64/jli/libjli.so

              7f205a873000-7f205a874000 rw-p 00000000 00:00 0

              7f205a874000-7f205a87c000 rw-s 00000000 ca:01 148643                     /tmp/hsperfdata_ec2-user/28845

              7f205a87c000-7f205a87d000 rw-p 00000000 00:00 0

              7f205a87d000-7f205a87e000 r--p 00000000 00:00 0

              7f205a87e000-7f205a87f000 rw-p 00000000 00:00 0

              7fff64a54000-7fff64a6e000 rw-p 00000000 00:00 0                          [stack]

              7fff64ba5000-7fff64ba6000 r-xp 00000000 00:00 0                          [vdso]

              ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

               

               

              VM Arguments:

              jvm_args: -XX:+UnlockCommercialFeatures -XX:+FlightRecorder

              java_command: <unknown>

              Launcher Type: SUN_STANDARD

               

               

              Environment Variables:

              JAVA_HOME=/usr/lib/jvm/default-java

              CLASSPATH=/usr/rv/java/rvjpro.jar

              PATH=/home/ec2-user/bin:/home/ec2-user/local/bin:/home/ec2-user/bin/mbtools:/home/ec2-user/devct/perl:/home/y/sbin:/home/y/bin:/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/usr/kerberos/bin:/home/ci/bin:/home/ec2-user/hg/cygbin:/home/ec2-user/springsource/apache-maven-3.0.3/bin:.:/home/ec2-user/3rdparty/gradle/bin

              SHELL=/bin/bash

              HOSTTYPE=x86_64-linux

              OSTYPE=linux

              MACHTYPE=x86_64

               

               

              Signal Handlers:

              SIGSEGV: [libjvm.so+0x993870], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

              SIGBUS: [libjvm.so+0x993870], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

              SIGFPE: [libjvm.so+0x8105b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

              SIGPIPE: [libjvm.so+0x8105b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

              SIGXFSZ: [libjvm.so+0x8105b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

              SIGILL: [libjvm.so+0x8105b0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

              SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000

              SIGUSR2: [libjvm.so+0x811aa0], sa_mask[0]=0x00000000, sa_flags=0x10000004

              SIGHUP: [libjvm.so+0x812a10], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

              SIGINT: [libjvm.so+0x812a10], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

              SIGTERM: [libjvm.so+0x812a10], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004

              SIGQUIT: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000

               

               

               

               

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

               

               

              OS:Red Hat Enterprise Linux Server release 6.5 (Santiago)

               

               

              uname:Linux 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64

              libc:glibc 2.12 NPTL 2.12

              rlimit: STACK 10240k, CORE 0k, NPROC 1024, NOFILE 4096, AS infinity

              load average:0.00 0.00 0.00

               

               

              /proc/meminfo:

              MemTotal:        7672016 kB

              MemFree:         5991920 kB

              Buffers:          204804 kB

              Cached:           772176 kB

              SwapCached:            0 kB

              Active:          1154068 kB

              Inactive:         266672 kB

              Active(anon):     443892 kB

              Inactive(anon):      324 kB

              Active(file):     710176 kB

              Inactive(file):   266348 kB

              Unevictable:           0 kB

              Mlocked:               0 kB

              SwapTotal:             0 kB

              SwapFree:              0 kB

              Dirty:                 8 kB

              Writeback:             0 kB

              AnonPages:        439752 kB

              Mapped:            25780 kB

              Shmem:               460 kB

              Slab:             189844 kB

              SReclaimable:     130832 kB

              SUnreclaim:        59012 kB

              KernelStack:        1328 kB

              PageTables:         6760 kB

              NFS_Unstable:          0 kB

              Bounce:                0 kB

              WritebackTmp:          0 kB

              CommitLimit:     3836008 kB

              Committed_AS:     638148 kB

              VmallocTotal:   34359738367 kB

              VmallocUsed:       25952 kB

              VmallocChunk:   34359710332 kB

              HardwareCorrupted:     0 kB

              AnonHugePages:    387072 kB

              HugePages_Total:       0

              HugePages_Free:        0

              HugePages_Rsvd:        0

              HugePages_Surp:        0

              Hugepagesize:       2048 kB

              DirectMap4k:        6144 kB

              DirectMap2M:     7858176 kB

               

               

               

               

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

               

               

              /proc/cpuinfo:

              processor : 0

              vendor_id : GenuineIntel

              cpu family : 6

              model : 62

              model name : Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz

              stepping : 4

              cpu MHz : 2500.153

              cache size : 25600 KB

              fpu : yes

              fpu_exception : yes

              cpuid level : 13

              wp : yes

              flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm arch_perfmon rep_good xtopology unfair_spinlock pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase erms

              bogomips : 5000.30

              clflush size : 64

              cache_alignment : 64

              address sizes : 46 bits physical, 48 bits virtual

              power management:

               

               

              processor : 1

              vendor_id : GenuineIntel

              cpu family : 6

              model : 62

              model name : Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz

              stepping : 4

              cpu MHz : 2500.153

              cache size : 25600 KB

              fpu : yes

              fpu_exception : yes

              cpuid level : 13

              wp : yes

              flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm arch_perfmon rep_good xtopology unfair_spinlock pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase erms

              bogomips : 5000.45

              clflush size : 64

              cache_alignment : 64

              address sizes : 46 bits physical, 48 bits virtual

              power management:

               

               

               

               

               

               

              Memory: 4k page, physical 7672016k(5991920k free), swap 0k(0k free)

               

               

              vm_info: Java HotSpot(TM) 64-Bit Server VM (24.51-b03) for linux-amd64 JRE (1.7.0_51-b13), built on Dec 18 2013 18:48:01 by "java_re" with gcc 4.3.0 20080428 (Red Hat 4.3.0-8)

               

               

              time: Thu Mar  6 17:57:24 2014

              elapsed time: 0 seconds

              • 4. Re: Enabling JFR causes crash on startup
                Markus Gronlund

                Thanks a lot for posting Chris - it confirms my suspicion:

                 

                ....

                 

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

                 

                By some reason, inspecting the CPU which is a Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz (which has 8 cores and 16 threads), Hotspot is given 0 cores per CPU but still seems to get 2 threads per core from the virtualized host. This could be a bug in the virtualized host.

                 

                Cheers

                Markus

                • 5. Re: Enabling JFR causes crash on startup
                  ctoomey

                  Thanks Markus.  I'll try some other AMIs on EC2 and hopefully can find one that doesn't have this issue.

                   

                  Meantime if there's a way I you could send me a replacement jar file with the bug fix (if that's something easy) I'd appreciate that as a workaround.

                   

                  Chris