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

G1: some CollectionUsageThreshold tests fail

XMLWordPrintable

    • gc
    • b06
    • b06
    • generic
    • generic
    • Verified

        Several tests involving CollectionUsageThreshold, mostly from the nsk.quick-monitoring suite, fail on all platforms:

        nsk/monitoring/MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded001
        nsk/monitoring/MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded002
        nsk/monitoring/MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded004
        nsk/monitoring/MemoryPoolMBean/isCollectionUsageThresholdExceeded/isexceeded005
        nsk/monitoring/MemoryPoolMBean/setCollectionUsageThreshold/setthreshold002
        nsk/monitoring/MemoryPoolMBean/setCollectionUsageThreshold/setthreshold003
        nsk/monitoring/MemoryPoolMBean/setCollectionUsageThreshold/setthreshold004
        nsk/monitoring/MemoryPoolMBean/setCollectionUsageThreshold/setthreshold005
        java/lang/management/MemoryPoolMXBean/ThresholdTest.java

        Here's a partial log from the first test above:

        [2009-11-25T10:03:39.97] MemoryMonitor > Test mode: DIRECTLY access to MBean
        [2009-11-25T10:03:39.97] MemoryMonitor > Memory: heap (This setting is used in lowmem* tests only)
        [2009-11-25T10:03:39.97] MemoryMonitor > Monitoring: notification (This setting is used in lowmem* tests only)
        [2009-11-25T10:03:39.97] MemoryMonitor > Threshold: usage (This setting is used in lowmem* tests only)
        [2009-11-25T10:03:39.97] MemoryMonitor > Timeout: 30 (This setting is used in lowmem* tests only)
        [2009-11-25T10:03:39.97] 0 pool Code Cache
        [2009-11-25T10:03:39.97] does not support collection usage thresholds
        [2009-11-25T10:03:39.97] UnsupportedOperationException is thrown
        [2009-11-25T10:03:39.97] 1 pool G1 Eden
        [2009-11-25T10:03:39.97] supports collection usage thresholds
        [2009-11-25T10:03:39.97] setting threshold 1 init = 1048576(1024K) used = 0(0K) committed = 0(0K) max = 1048576(1024K)
        [2009-11-25T10:03:39.97] threshold 1 is set, (used = 0, isExceeded = false)
        [2009-11-25T10:03:39.97] used value (0) did not cross the threshold value (1)
        [2009-11-25T10:03:39.97] 2 pool G1 Survivor
        [2009-11-25T10:03:39.97] supports collection usage thresholds
        [2009-11-25T10:03:39.97] setting threshold 0 init = 0(0K) used = 0(0K) committed = 0(0K) max = 0(0K)
        [2009-11-25T10:03:39.97] threshold 0 is set, (used = 0, isExceeded = false)
        [2009-11-25T10:03:39.97] used Turning off use of shared archive because of choice of garbage collector or large pages
        [2009-11-25T10:03:40.00] value (0) crossed the threshold value (0)
        [2009-11-25T10:03:40.00] # ERROR: isCollectionUsageThresholdExceeded() returned false, while threshold = 0 and used = 0
        [2009-11-25T10:03:40.00] 3 pool G1 Old Gen
        [2009-11-25T10:03:40.00] supports collection usage thresholds
        [2009-11-25T10:03:40.00] setting threshold 1 init = 200278016(195584K) used = 0(0K) committed = 0(0K) max = 3218079744(3142656K)
        [2009-11-25T10:03:40.00] threshold 1 is set, (used = 0, isExceeded = false)
        [2009-11-25T10:03:40.00] used value (0) did not cross the threshold value (1)
        [2009-11-25T10:03:40.00] 4 pool G1 Perm Gen
        [2009-11-25T10:03:40.00] supports collection usage thresholds
        [2009-11-25T10:03:40.00] setting threshold 1 init = 20971520(20480K) used = 0(0K) committed = 0(0K) max = 88080384(86016K)
        [2009-11-25T10:03:40.00] threshold 1 is set, (used = 0, isExceeded = false)
        [2009-11-25T10:03:40.00] used value (0) did not cross the threshold value (1)
        [2009-11-25T10:03:40.00] TEST FAILED
        [2009-11-25T10:03:40.00]
        [2009-11-25T10:03:40.00]
        [2009-11-25T10:03:40.00] #>
        [2009-11-25T10:03:40.00] #> SUMMARY: Following errors occured
        [2009-11-25T10:03:40.00] #> during test execution:
        [2009-11-25T10:03:40.00] #>
        [2009-11-25T10:03:40.00] # ERROR: isCollectionUsageThresholdExceeded() returned false, while threshold = 0 and used = 0
        [2009-11-25T10:03:40.00] # Test level exit status: 97

              tonyp Tony Printezis
              jcoomes John Coomes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: