jmx-dev RFR: 8353231: Test com/sun/management/OperatingSystemMXBean/GetProcessCpuLoad still fails intermittently

Kevin Walls kevinw at openjdk.org
Mon Apr 7 11:36:55 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=.

Thanks David!

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24352#issuecomment-2783014959


More information about the jmx-dev mailing list