6853676: OperatingSystemMXBean.TotalPhysicalMemorySize has incorrect value

Alan Bateman Alan.Bateman at oracle.com
Wed Feb 2 02:05:34 PST 2011


David Holmes wrote:
> Dmytro,
>
> It looks like this was actually fixed under 6840305 back in July 2009:
>
> http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/8c79517a9300
>
> This CR was not updated however.
>
> Does the problem still exist?
>
> David Holmes
I think this is separate and 6853676 is about 
com.sun.management.OperatingSystemMXBean. The code for that is in jdk 
repo in src/windows/native/com/sun/management. It should be using 
GlobalMemoryStatusEx rather than GlobalMemoryStatus.

Dmytro - to your question, serviceability-dev is the right place to 
bring it.

-Alan


More information about the serviceability-dev mailing list