Skip to content

[Enhancement] the algorithm of load issue on Windows #1641

Closed
@mercyblitz

Description

@mercyblitz

@alphatan


My research of this problem.

According to this answer of the question "Alternate of getSystemLoadAverage() for Windows?", the method getSystemLoadAverage of java.lang.management.OperatingSystemMXBean would return -1 in Windows.

It'd be suggested to use com.sun.management.OperatingSystemMXBean and its getSystemCpuLoad() and getProcessCpuLoad() instead.

Metadata

Metadata

Assignees

Labels

help wantedEverything needs help from contributorstype/bugBugs to being fixed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions