RFR [jdk8] : 8193807 : AIX: avoid UnsatisfiedLinkError by providing empty basic implementations of getSystemCpuLoad and getProcessCpuLoad

Baesken, Matthias matthias.baesken at sap.com
Wed Dec 20 08:50:54 UTC 2017

Hello  , Mark reported  this issue on AIX  with OpenJDK8 :

>I'm getting an unsatisfied link error when using logstash on AIX but I suspect the issue is with AIX or the JRE, the exception is:
> java.lang.UnsatisfiedLinkError: sun.management.OperatingSystemImpl.getProcessCpuLoad()D
>                  getProcessCpuLoad at sun/management/OperatingSystemImpl.java:-2
>                             <init> at org/logstash/instrument/monitors/ProcessMonitor.java:40
>                             detect at org/logstash/instrument/monitors/ProcessMonitor.java:79
>                           generate at org/logstash/instrument/reports/ProcessReport.java:15
> this is the line in logstash:
> this.cpuProcessPercent = scaleLoadToPercent(unixOsBean.getProcessCpuLoad());
> https://github.com/elastic/logstash/blob/master/logstash-core/src/main/java/org/logstash/instrument/monitors/ProcessMonitor.java
> Could anybody help steer me in the right direction?

This fix addresses  the missing  getSystemCpuLoad and getProcessCpuLoad  on AIX  .
JDK8 is only affected , JDK9 and higher is not affected .

Could I get a  review for this change   ?

Change :


Bug :


Thanks, Matthias

More information about the core-libs-dev mailing list