java/118735: Java 1.5: JMX OperatingSystem mbean yields wrong
results
Kees Jan Koster
kjkoster at kjkoster.org
Sat Dec 15 15:00:06 PST 2007
>Number: 118735
>Category: java
>Synopsis: Java 1.5: JMX OperatingSystem mbean yields wrong results
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-java
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 15 23:00:06 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Kees Jan Koster
>Release: 6.3-PRERELEASE
>Organization:
>Environment:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-p4-kjkoster_15_may_2007_13_43)
Java HotSpot(TM) Client VM (build 1.5.0-p4-kjkoster_15_may_2007_13_43, mixed mode)
>Description:
The OperatingSystem mbean returns no useful results for the attributes that I tested, which were: TotalSwapSpaceSize, FreeSwapSpaceSize, OpenFileDescriptorCount, FreePhysicalMemorySize, CommittedVirtualMemorySize, MaxFileDescriptorCount, TotalPhysicalMemorySize.
These values are either seemingly random, or fixed at some unless value.
>How-To-Repeat:
Start a Java program using FreeBSD's 1.5 Java port. On the command line, enable JMX using the options: "-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false". Then use jconsole to attach to this process and view the mbean identified by java.lang:type=OperatingSystem.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-java
mailing list