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

com/sun/management/OperatingSystemMXBean/TestTotalSwap.java: Expected total swap size ... but getTotalSwapSpaceSize returned ...

    XMLWordPrintable

Details

    Backports

      Description

        Test com/sun/management/OperatingSystemMXBean/TestTotalSwap.java
        might fail intermittently on linux or mac
        Example:
        ----------System.out:(8/459)----------
        Command line: [/usr/sbin/sysctl -n vm.swapusage]
        [2021-08-19T00:11:44.129957Z] Gathering output for process 78603
        [2021-08-19T00:11:44.453475Z] Waiting for completion for process 78603
        [2021-08-19T00:11:44.453653Z] Waiting for completion finished for process 78603
        Output and diagnostic info for process 78603 was saved into 'pid-78603-output.log'
        total = 13312.00M used = 11447.75M free = 1864.25M (encrypted)

        Total swap space size in bytes: 12884901888
        ----------System.err:(12/779)----------
        java.lang.RuntimeException: Expected total swap size : 13958643712 but getTotalSwapSpaceSize returned: 12884901888
        at TestTotalSwap.main(TestTotalSwap.java:92)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:833)

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

        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected total swap size : 13958643712 but getTotalSwapSpaceSize returned: 12884901888

        Attachments

          Issue Links

            Activity

              People

                lmesnik Leonid Mesnik
                lmesnik Leonid Mesnik
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: