RFR: 8353231: Test com/sun/management/OperatingSystemMXBean/GetProcessCpuLoad still fails intermittently
David Holmes
dholmes at openjdk.org
Mon Apr 7 07:39:54 UTC 2025
On Tue, 1 Apr 2025 10:27:39 GMT, Kevin Walls <kevinw at openjdk.org> wrote:
> Test com/sun/management/OperatingSystemMXBean/GetProcessCpuLoad still fails intermittently.
> On failure, 10 attempts with sleep(200) each time, only read -1 from mbean.getProcessCpuLoad().
> The method is documented to return -1 when info is not available, but want to avoid the test accepting a -1 and masking real problems.
>
> Test failures are happening when multiple CPU load reding tests ran on the same host, at the same second.
> Add a TEST.properties file containing: exclusiveAccess.dirs=.
Okay lets give this a try.
Thanks
-------------
Marked as reviewed by dholmes (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/24352#pullrequestreview-2745797954
More information about the serviceability-dev
mailing list