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

java/lang/management/ThreadMXBean/AllThreadIds.java still fails intermittently

XMLWordPrintable

        java/lang/management/ThreadMXBean/AllThreadIds.java

        This test has been fixed in JDK-8078143, but still see this test failing intermittently.

        #section:main
        ----------messages:(160/7559)----------
        command: main AllThreadIds
        reason: User specified action: run main/othervm AllThreadIds
        Timeout information:
        Running jstack on process 10702
        2015-07-12 03:55:59
        Full thread dump Java HotSpot(TM) 64-Bit Server VM (1.9.0-ea-b71 mixed mode):

        "Attach Listener" #49 daemon prio=9 os_prio=64 tid=0x00000000006e3000 nid=0x4a waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "MainThread" #23 prio=5 os_prio=64 tid=0x0000000000917800 nid=0x30 waiting on condition [0xffff80ffb2fbc000]
           java.lang.Thread.State: TIMED_WAITING (sleeping)
        at java.lang.Thread.sleep(Native Method)
        at AllThreadIds.waitTillEquals(AllThreadIds.java:303)
        at AllThreadIds.checkTotalThreads(AllThreadIds.java:245)
        at AllThreadIds.checkThreadCount(AllThreadIds.java:209)
        at AllThreadIds.checkAllThreadsDead(AllThreadIds.java:200)
        at AllThreadIds.main(AllThreadIds.java:321)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:502)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:745)

        "Service Thread" #21 daemon prio=9 os_prio=64 tid=0x00000000006d4000 nid=0x2e runnable [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "Sweeper thread" #20 daemon prio=9 os_prio=64 tid=0x00000000006c4800 nid=0x2d runnable [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C1 CompilerThread14" #19 daemon prio=9 os_prio=64 tid=0x00000000006c2800 nid=0x2c waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C1 CompilerThread13" #18 daemon prio=9 os_prio=64 tid=0x00000000006b0800 nid=0x2b waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C1 CompilerThread12" #17 daemon prio=9 os_prio=64 tid=0x00000000006ae000 nid=0x2a waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C1 CompilerThread11" #16 daemon prio=9 os_prio=64 tid=0x0000000000693800 nid=0x29 waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C1 CompilerThread10" #15 daemon prio=9 os_prio=64 tid=0x0000000000691800 nid=0x28 waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C2 CompilerThread9" #14 daemon prio=9 os_prio=64 tid=0x000000000067f800 nid=0x27 waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C2 CompilerThread8" #13 daemon prio=9 os_prio=64 tid=0x000000000067d800 nid=0x26 waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C2 CompilerThread7" #12 daemon prio=9 os_prio=64 tid=0x000000000066b000 nid=0x25 waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C2 CompilerThread6" #11 daemon prio=9 os_prio=64 tid=0x0000000000660800 nid=0x24 waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C2 CompilerThread5" #10 daemon prio=9 os_prio=64 tid=0x000000000065f000 nid=0x23 waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C2 CompilerThread4" #9 daemon prio=9 os_prio=64 tid=0x0000000000619000 nid=0x22 waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C2 CompilerThread3" #8 daemon prio=9 os_prio=64 tid=0x000000000060e800 nid=0x21 waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C2 CompilerThread2" #7 daemon prio=9 os_prio=64 tid=0x00000000005eb800 nid=0x20 waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C2 CompilerThread1" #6 daemon prio=9 os_prio=64 tid=0x00000000005e8800 nid=0x1f waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "C2 CompilerThread0" #5 daemon prio=9 os_prio=64 tid=0x00000000005e5000 nid=0x1e waiting on condition [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "Signal Dispatcher" #4 daemon prio=9 os_prio=64 tid=0x00000000005e3800 nid=0x1d runnable [0x0000000000000000]
           java.lang.Thread.State: RUNNABLE

        "Finalizer" #3 daemon prio=8 os_prio=64 tid=0x00000000005b7800 nid=0x1c in Object.wait() [0xffff80ffb6993000]
           java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00000000f560b4f0> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
        - locked <0x00000000f560b4f0> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:213)

        "Reference Handler" #2 daemon prio=10 os_prio=64 tid=0x00000000005ad800 nid=0x1b in Object.wait() [0xffff80ffb6a94000]
           java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00000000f5606a78> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:508)
        at java.lang.ref.Reference.tryHandlePending(Reference.java:192)
        - locked <0x00000000f5606a78> (a java.lang.ref.Reference$Lock)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:154)

        "main" #1 prio=5 os_prio=64 tid=0x0000000000420800 nid=0x2 in Object.wait() [0xffff80ffbf18e000]
           java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        - waiting on <0x00000000f571ca48> (a java.lang.Thread)
        at java.lang.Thread.join(Thread.java:1249)
        - locked <0x00000000f571ca48> (a java.lang.Thread)
        at java.lang.Thread.join(Thread.java:1323)
        at com.sun.javatest.regtest.agent.MainWrapper.main(MainWrapper.java:69)

        "VM Thread" os_prio=64 tid=0x000000000059a000 nid=0x1a runnable

        "ParGC Thread#0" os_prio=64 tid=0x0000000000433000 nid=0x3 runnable

        "ParGC Thread#1" os_prio=64 tid=0x0000000000434800 nid=0x4 runnable

        "ParGC Thread#2" os_prio=64 tid=0x0000000000436000 nid=0x5 runnable

        "ParGC Thread#3" os_prio=64 tid=0x0000000000437800 nid=0x6 runnable

        "ParGC Thread#4" os_prio=64 tid=0x0000000000439000 nid=0x7 runnable

        "ParGC Thread#5" os_prio=64 tid=0x000000000043a800 nid=0x8 runnable

        "ParGC Thread#6" os_prio=64 tid=0x000000000043c000 nid=0x9 runnable

        "ParGC Thread#7" os_prio=64 tid=0x000000000043d800 nid=0xa runnable

        "ParGC Thread#8" os_prio=64 tid=0x000000000043f000 nid=0xb runnable

        "ParGC Thread#9" os_prio=64 tid=0x0000000000440800 nid=0xc runnable

        "ParGC Thread#10" os_prio=64 tid=0x0000000000443800 nid=0xd runnable

        "ParGC Thread#11" os_prio=64 tid=0x0000000000445000 nid=0xe runnable

        "ParGC Thread#12" os_prio=64 tid=0x0000000000446800 nid=0xf runnable

        "ParGC Thread#13" os_prio=64 tid=0x0000000000448000 nid=0x10 runnable

        "ParGC Thread#14" os_prio=64 tid=0x000000000044a000 nid=0x11 runnable

        "ParGC Thread#15" os_prio=64 tid=0x000000000044b800 nid=0x12 runnable

        "ParGC Thread#16" os_prio=64 tid=0x000000000044d000 nid=0x13 runnable

        "ParGC Thread#17" os_prio=64 tid=0x000000000044e800 nid=0x14 runnable

        "ParGC Thread#18" os_prio=64 tid=0x0000000000450000 nid=0x15 runnable

        "ParGC Thread#19" os_prio=64 tid=0x0000000000451800 nid=0x16 runnable

        "ParGC Thread#20" os_prio=64 tid=0x0000000000453000 nid=0x17 runnable

        "ParGC Thread#21" os_prio=64 tid=0x0000000000456800 nid=0x18 runnable

        "ParGC Thread#22" os_prio=64 tid=0x0000000000458000 nid=0x19 runnable

        "VM Periodic Task Thread" os_prio=64 tid=0x00000000006d6000 nid=0x2f waiting on condition

        JNI global references: 406

        --- Timeout information end.
        elapsed time (seconds): 960.582
        ----------System.out:(62/2408)----------
        1: Thread id = 23
        2: Thread id = 4
        3: Thread id = 3
        4: Thread id = 2
        5: Thread id = 1
        Thread-1 Id = 24 die = false alive = false
        Thread-2 Id = 25 die = false alive = false
        Thread-3 Id = 26 die = false alive = false
        Thread-4 Id = 27 die = false alive = false
        Thread-5 Id = 28 die = false alive = false
        Thread-6 Id = 29 die = false alive = false
        Thread-7 Id = 30 die = false alive = false
        Thread-8 Id = 31 die = false alive = false
        Thread-9 Id = 32 die = false alive = false
        Thread-10 Id = 33 die = false alive = false
        Thread-11 Id = 34 die = false alive = false
        Thread-12 Id = 35 die = false alive = false
        Thread-13 Id = 36 die = false alive = false
        Thread-14 Id = 37 die = false alive = false
        Thread-15 Id = 38 die = false alive = false
        Thread-16 Id = 39 die = false alive = false
        Thread-17 Id = 40 die = false alive = false
        Thread-18 Id = 41 die = false alive = false
        Thread-19 Id = 42 die = false alive = false
        Thread-20 Id = 43 die = false alive = false
        Thread-21 Id = 44 die = false alive = false
        Thread-22 Id = 45 die = false alive = false
        Thread-23 Id = 46 die = false alive = false
        Thread-24 Id = 47 die = false alive = false
        Thread-25 Id = 48 die = false alive = false
        Timeout signalled after 960 seconds
        1: Thread id = 49
        2: Thread id = 23
        3: Thread id = 4
        4: Thread id = 3
        5: Thread id = 2
        6: Thread id = 1
        Thread-1 Id = 24 die = false alive = false
        Thread-2 Id = 25 die = false alive = false
        Thread-3 Id = 26 die = false alive = false
        Thread-4 Id = 27 die = false alive = false
        Thread-5 Id = 28 die = false alive = false
        Thread-6 Id = 29 die = false alive = false
        Thread-7 Id = 30 die = false alive = false
        Thread-8 Id = 31 die = false alive = false
        Thread-9 Id = 32 die = false alive = false
        Thread-10 Id = 33 die = false alive = false
        Thread-11 Id = 34 die = false alive = false
        Thread-12 Id = 35 die = false alive = false
        Thread-13 Id = 36 die = false alive = false
        Thread-14 Id = 37 die = false alive = false
        Thread-15 Id = 38 die = false alive = false
        Thread-16 Id = 39 die = false alive = false
        Thread-17 Id = 40 die = false alive = false
        Thread-18 Id = 41 die = false alive = false
        Thread-19 Id = 42 die = false alive = false
        Thread-20 Id = 43 die = false alive = false
        Thread-21 Id = 44 die = false alive = false
        Thread-22 Id = 45 die = false alive = false
        Thread-23 Id = 46 die = false alive = false
        Thread-24 Id = 47 die = false alive = false
        Thread-25 Id = 48 die = false alive = false
        ----------System.err:(8/291)----------
        TS: 2015-07-12T10:39:59.393198Z
        Unexpected number of live threads: Prev live = 11 Current live = 5 Threads added = 0 Threads terminated = 5
        Retrying ...

        TS: 2015-07-12T10:55:59.316038Z
        Unexpected number of total threads: Prev Total = 30 Current Total = 31 Threads added = 0
        Retrying ...

              dtitov Daniil Titov (Inactive)
              amlu Amy Lu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated:
                Resolved: