Github user rmetzger commented on a diff in the pull request:
https://github.com/apache/flink/pull/833#discussion_r32382202
--- Diff:
flink-runtime/src/main/scala/org/apache/flink/runtime/taskmanager/TaskManager.scala
---
@@ -1784,7 +1784,7 @@ object TaskManager {
* @return
*/
private def getMethodToFetchCPULoad(): Option[Method] = {
- val methodsList =
classOf[com.sun.management.OperatingSystemMXBean].getMethods()
+ val methodsList =
classOf[java.lang.management.OperatingSystemMXBean].getMethods()
--- End diff --
getMethods() will never contain the `getProcessCpuLoad` method, so the
feature is basically disabled
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---