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

OperatingSystemMXBean/TestTotalSwap.java failure : Total Swap Space figures mismatch

XMLWordPrintable

        It seems that the "free -b" on arm returned figures in kilobytes rather than bytes: 2683301888 is exactly 2620412 kb

        ----------messages:(3/113)----------
        command: main TestTotalSwap
        reason: User specified action: run main TestTotalSwap
        elapsed time (seconds): 3.238
        ----------System.out:(7/300)----------
        Command line: [free -b]
                     total used free shared buffers
        Mem: 765280 679464 85816 0 178248
        -/+ buffers: 501216 264064
        Swap: 2620412 5112 2615300

        Total swap space size in bytes: 2683301888
        ----------System.err:(13/917)----------
        java.lang.RuntimeException: Expected total swap size : 2620412 but getTotalSwapSpaceSize returned: 2683301888
        at TestTotalSwap.main(TestTotalSwap.java:90)
        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)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected total swap size : 2620412 but getTotalSwapSpaceSize returned: 2683301888

              jbachorik Jaroslav BachorĂ­k
              olagneau Olivier Lagneau (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: