Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2007 22:52:07 GMT
From:      Kees Jan Koster <kjkoster@kjkoster.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   java/118735: Java 1.5: JMX OperatingSystem mbean yields wrong results
Message-ID:  <200712152252.lBFMq7oH073075@www.freebsd.org>
Resent-Message-ID: <200712152300.lBFN06Xu051928@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712152252.lBFMq7oH073075>