java.lang.UnsatisfiedLinkError: sun.management.OperatingSystemImpl.getProcessCpuLoad()
Baesken, Matthias
matthias.baesken at sap.com
Thu Dec 14 12:18:45 UTC 2017
Hi , the documentation says :
https://docs.oracle.com/javase/8/docs/jre/api/management/extension/com/sun/management/OperatingSystemMXBean.html#getProcessCpuLoad--
getProcessCpuLoad
...
Returns:
the "recent cpu usage" for the Java Virtual Machine process; a negative value if not available.
So I think we should provide the native function and return a negative value e.g. -1.0 on AIX (instead of not providing the native function and causing this UnsatisfiedLinkError ),
that's what we do in SAPJVM as well on AIX .
Currently I am not aware how to get the value on AIX (maybe the IBM developers have a recommendation).
Best regards, Matthias
> -----Original Message-----
> From: ppc-aix-port-dev [mailto:ppc-aix-port-dev-
> bounces at openjdk.java.net] On Behalf Of Evans, Martin
> Sent: Mittwoch, 13. Dezember 2017 19:12
> To: Volker Simonis <volker.simonis at gmail.com>
> Cc: ppc-aix-port-dev at openjdk.java.net
> Subject: RE: java.lang.UnsatisfiedLinkError:
> sun.management.OperatingSystemImpl.getProcessCpuLoad()
>
> Hi Volker,
>
> openjdk version "1.8.0-internal"
> OpenJDK Runtime Environment (build 1.8.0-internal-
> jenkins_2017_07_27_13_41-b00)
> OpenJDK 64-Bit Server VM (build 25.71-b00, mixed mode)
>
> Downloaded from:
> https://adoptopenjdk.net/releases.html?variant=openjdk8#ppc64_aix
>
> AIX : 7.1.0.0
>
> Logstash : logstash-6.0.1
>
> Kind regards,
>
> Martin
>
> -----Original Message-----
> From: Volker Simonis [mailto:volker.simonis at gmail.com]
> Sent: 13 December 2017 17:59
> To: Evans, Martin <Martin.Evans at kingfisher.com>
> Cc: ppc-aix-port-dev at openjdk.java.net
> Subject: Re: java.lang.UnsatisfiedLinkError:
> sun.management.OperatingSystemImpl.getProcessCpuLoad()
>
> Hi Martin,
>
> can you please be a little more specific:
>
> - which version of OpenJDK do you use (i.e. 'java -version')?
> - which build do you use?
> - if you build it yourself, from which repository did you build?
> - if you didn't built it yourself, where did you download it from?
> - on which version of AIX did you saw the problems?
>
> Thank you and best regards,
> Volker
>
>
> On Wed, Dec 13, 2017 at 6:32 PM, Evans, Martin
> <Martin.Evans at kingfisher.com> wrote:
> > Hi,
> >
> >
> >
> > 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?
> >
> >
> >
> > Thanks
> >
> >
> >
> > Martin
> >
> >
> >
> > ------------ Kingfisher plc Registered Office: 3 Sheldon Square,
> > Paddington, London W2 6PX Registered in England, Number 1664812 This
> > e-mail is only intended for the person(s) to whom it is addressed and
> > may contain confidential information. Unless stated to the contrary,
> > any opinions or comments are personal to the writer and do not
> > represent the official view of the company. If you have received this
> > e-mail in error, please notify us immediately by reply e-mail and then
> delete this message from your system.
> > Please do not copy it or use it for any purpose, or disclose its
> > contents to any other person. Thank you for your co-operation.
> ------------ Kingfisher plc Registered Office: 3 Sheldon Square, Paddington,
> London W2 6PX Registered in England, Number 1664812 This e-mail is only
> intended for the person(s) to whom it is addressed and may contain
> confidential information. Unless stated to the contrary, any opinions or
> comments are personal to the writer and do not represent the official view
> of the company. If you have received this e-mail in error, please notify us
> immediately by reply e-mail and then delete this message from your system.
> Please do not copy it or use it for any purpose, or disclose its contents to any
> other person. Thank you for your co-operation.
More information about the ppc-aix-port-dev
mailing list