From owner-cvs-ports@FreeBSD.ORG Tue Jan 1 16:49:11 2008 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D59B316A419; Tue, 1 Jan 2008 16:49:11 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C52BC13C455; Tue, 1 Jan 2008 16:49:11 +0000 (UTC) (envelope-from glewis@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m01GnBoM085701; Tue, 1 Jan 2008 16:49:11 GMT (envelope-from glewis@repoman.freebsd.org) Received: (from glewis@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m01GnBTS085700; Tue, 1 Jan 2008 16:49:11 GMT (envelope-from glewis) Message-Id: <200801011649.m01GnBTS085700@repoman.freebsd.org> From: Greg Lewis Date: Tue, 1 Jan 2008 16:49:11 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/java/jdk15 Makefile ports/java/jdk15/files patch-j2se::management::UnixOperatingSystem_md.c X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2008 16:49:11 -0000 glewis 2008-01-01 16:49:11 UTC FreeBSD ports repository Modified files: java/jdk15 Makefile Added files: java/jdk15/files patch-j2se::management::UnixOperatingSystem_md.c Log: . Implement or fix more of the OS specific statistics gathering functions. This allows jconsole to show valid statistics for the following OperatingSystem MBean statistics (some of these statistics are also shown in the Summary and VM tab of jconsole): TotalSwapSpaceSize, FreeSwapSpaceSize, FreePhysicalMemorySize and TotalPhysicalMemorySize. Note that MaxFileDescriptorCount has always been correct as far as I can tell. . Also, implement the function for ProcessCpuTime using a non-deprecated function (getrusage(2) rather than times(3)). These changes are restricted to 6.x and higher and have only been tested on 6.x (where they appear to work correctly). The changes are not valid for 4.x. Their validity on 5.x and 7.x is unknown (testing welcome). The PR is not fully addressed by these changes since CommittedVirtualMemorySize and OpenFileDescriptorCount remain bogus. Suggestions on how to get these without using kvm(3) would be appreciated. PR: 118735 Revision Changes Path 1.141 +1 -1 ports/java/jdk15/Makefile 1.3 +121 -0 ports/java/jdk15/files/patch-j2se::management::UnixOperatingSystem_md.c (new)