From owner-freebsd-java@FreeBSD.ORG Sat Dec 15 23:00:06 2007 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 884D016A41B for ; Sat, 15 Dec 2007 23:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 67A4113C46E for ; Sat, 15 Dec 2007 23:00:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lBFN06G9051929 for ; Sat, 15 Dec 2007 23:00:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lBFN06Xu051928; Sat, 15 Dec 2007 23:00:06 GMT (envelope-from gnats) Resent-Date: Sat, 15 Dec 2007 23:00:06 GMT Resent-Message-Id: <200712152300.lBFN06Xu051928@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-java@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kees Jan Koster Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B80516A417 for ; Sat, 15 Dec 2007 22:52:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 64D4113C457 for ; Sat, 15 Dec 2007 22:52:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lBFMq7SU073077 for ; Sat, 15 Dec 2007 22:52:07 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id lBFMq7oH073075; Sat, 15 Dec 2007 22:52:07 GMT (envelope-from nobody) Message-Id: <200712152252.lBFMq7oH073075@www.freebsd.org> Date: Sat, 15 Dec 2007 22:52:07 GMT From: Kees Jan Koster To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: java/118735: Java 1.5: JMX OperatingSystem mbean yields wrong results X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2007 23:00:06 -0000 >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: