Java APM agent not pushing CPU & Memory metric - IBM Java on WebSphere Liberty

I think I know why capturing the CPU metrics doesn't work. The IBM-specific MBean behaves slightly differently than the Sun-specific one:

https://www.ibm.com/support/knowledgecenter/SSYKE2_8.0.0/com.ibm.java.api.80.doc/com.ibm.lang.management/com/ibm/lang/management/OperatingSystemMXBean.html#getSystemCpuLoad--
https://www.ibm.com/support/knowledgecenter/SSYKE2_8.0.0/com.ibm.java.api.80.doc/com.ibm.lang.management/com/ibm/lang/management/OperatingSystemMXBean.html#getSystemCpuLoad--

The first call to the method always returns CpuLoadCalculationConstants .ERROR_VALUE (-1.0), which marks the starting point.

However, we treat -1 a not available on this platform and don't register the metric. That should be an easy fix here:

Are you interested in providing a PR for this?

Regarding the Memory graph, there seems to be an inconsistency of what's returned from getTotalPhysicalMemorySize and what's in /proc/meminfo. Could you send me the output of cat /proc/meminfo?