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

test/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java hanging intermittently

    XMLWordPrintable

Details

    Backports

      Description

        TESTFAIL:java/lang/management/MemoryMXBean/CollectionUsageThreshold.java

        This test was fixed via 6992968 for a similar issue but it looks like we still have a problem. Here's a hang that was observed on jprt-host-x64-1 with the latest jdk8/tl/jdk (basically jdk8-b00 so close to jdk7-b147).

        --------------------------------------------------
        TEST: java/lang/management/MemoryMXBean/CollectionUsageThreshold.java
        JDK under test: (/tmp/jprt/P2/071909.ab23780/testproduct/solaris_i586_5.10-product)
        java version "1.8.0-internal"
        Java(TM) SE Runtime Environment (build 1.8.0-internal-201107160719.ab23780.jdk-b00)
        Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)

        ACTION: build -- Passed. Build successful
        REASON: User specified action: run build CollectionUsageThreshold MemoryUtil
        TIME: 0.277 seconds
        messages:
        command: build CollectionUsageThreshold MemoryUtil
        reason: User specified action: run build CollectionUsageThreshold MemoryUtil
        elapsed time (seconds): 0.277

        ACTION: compile -- Passed. Compilation successful
        REASON: .class file out of date or does not exist
        TIME: 0.277 seconds
        messages:
        command: compile /tmp/jprt/P2/071909.ab23780/source/test/java/lang/management/MemoryMXBean/CollectionUsageThreshold.java /tmp/jprt/P2/071909.ab23780/source/test/java/lang/management/MemoryMXBean/MemoryUtil.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.277

        ACTION: build -- Passed. All files up to date
        REASON: Named class compiled on demand
        TIME: 0.0 seconds
        messages:
        command: build CollectionUsageThreshold
        reason: Named class compiled on demand
        elapsed time (seconds): 0.0

        ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.InterruptedException
        REASON: User specified action: run main/timeout=300 CollectionUsageThreshold
        TIME: 1200.009 seconds
        messages:
        command: main CollectionUsageThreshold
        reason: User specified action: run main/timeout=300 CollectionUsageThreshold
        Timeout signalled after 1,200 seconds
        elapsed time (seconds): 1200.009
        STDOUT:
        Collection usage threshold of Tenured Gen set to 10
        Collection usage threshold of Perm Gen set to 10
        Calling System.gc()
        Notification for Tenured Gen [type = java.management.memory.collection.threshold.exceeded count = 1]
            usage = init = 11206656(10944K) used = 27223440(26585K) committed = 51482624(50276K) max = 178978816(174784K)
        notifying the checker thread to check result
        Notification for Perm Gen [type = java.management.memory.collection.threshold.exceeded count = 1]
            usage = init = 12582912(12288K) used = 9409144(9188K) committed = 12582912(12288K) max = 67108864(65536K)
        notifying the checker thread to check result
        Calling System.gc()
        notifying main thread to continue - result checking finished
        STDERR:
        java.lang.InterruptedException
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2017)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2052)
        at java.util.concurrent.CyclicBarrier.dowait(CyclicBarrier.java:227)
        at java.util.concurrent.CyclicBarrier.await(CyclicBarrier.java:355)
        at CollectionUsageThreshold.main(CollectionUsageThreshold.java:172)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
        at java.lang.Thread.run(Thread.java:722)

        JavaTest Message: Test threw exception: java.lang.InterruptedException
        JavaTest Message: shutting down test


        TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.InterruptedException
        --------------------------------------------------

        Attachments

          Issue Links

            Activity

              People

                ewang Eric Wang (Inactive)
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: