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

java/lang/management/ThreadMXBean/ResetPeakThreadCount.java failed with "RuntimeException: Current Peak = 14 Expected to be == previous peak = 7 + 8"

XMLWordPrintable

      The following test failed in the JDK17 CI:

      java/lang/management/ThreadMXBean/ResetPeakThreadCount.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/234)----------
      command: main ResetPeakThreadCount
      reason: User specified action: run main/othervm ResetPeakThreadCount
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.management
      elapsed time (seconds): 1.206
      ----------configuration:(3/43)----------
      Boot Layer
        add modules: java.management

      ----------System.out:(3/132)----------
      Reset peak before = 7 current = 7 after reset peak = 7 current = 7
      Starting 8 threads....
         Current = 14 Peak before = 7 after: 14
      ----------System.err:(14/996)----------
      java.lang.RuntimeException: Current Peak = 14 Expected to be == previous peak = 7 + 8
      at ResetPeakThreadCount.startThreads(ResetPeakThreadCount.java:157)
      at ResetPeakThreadCount.main(ResetPeakThreadCount.java:81)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Current Peak = 14 Expected to be == previous peak = 7 + 8
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Current Peak = 14 Expected to be == previous peak = 7 + 8
      ----------rerun:(41/5955)*----------

            amenkov Alex Menkov
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: