From owner-freebsd-java@FreeBSD.ORG Thu Jan 8 19:14:41 2009 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDC66106564A for ; Thu, 8 Jan 2009 19:14:41 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id A15178FC17 for ; Thu, 8 Jan 2009 19:14:41 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.14.2/8.14.2) with ESMTP id n08JEg6f040108; Thu, 8 Jan 2009 11:14:42 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.14.2/8.14.2/Submit) id n08JEf91040107; Thu, 8 Jan 2009 11:14:41 -0800 (PST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Thu, 8 Jan 2009 11:14:41 -0800 From: Greg Lewis To: Brian Gardner Message-ID: <20090108191441.GA40091@misty.eyesbeyond.com> References: <4963E688.2060005@experts-exchange.com> <20090108044605.GA26885@misty.eyesbeyond.com> <49663B64.5040204@experts-exchange.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49663B64.5040204@experts-exchange.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-java@freebsd.org Subject: Re: jmap 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: Thu, 08 Jan 2009 19:14:42 -0000 On Thu, Jan 08, 2009 at 09:44:04AM -0800, Brian Gardner wrote: > Are there alternates methods available to access heap information from a > running vm? This seems quite essential for tuning so I'd like to think > there is something out there. I'm not sure, since I don't do much with this myself. It seems like there are some reasonable Eclipse plugins for doing stuff like that, but I haven't tried to hook them up and I'm not sure what interface they use. I do know I can analyse heap dumps...but thats obviously different than a running VM. In terms of tuning the verbose GC information can also be quite useful. > Greg Lewis wrote: > > On Tue, Jan 06, 2009 at 03:17:28PM -0800, Brian Gardner wrote: > > > >> I'm trying to use jmap to dump a histo of a running vm, version > >> jdk-1.6.0.3p4_6. jmap keeps returning the following error, 'no > >> providers installed'. Are these tools supposed to function? If not are > >> there any alternates? > >> > >> $ /usr/local/jdk1.6.0/bin/jps > >> 72095 Jps > >> 88259 Bootstrap > >> > >> $ /usr/local/jdk1.6.0/bin/jmap -histo 88259 > >> 88259: no providers installed > >> > >> $ ps -jax | grep 88259 > >> ee 88259 1 88249 87874 0 I p0 15:39.48 [java] > >> ee 72142 72094 72141 88505 2 R+ p1 0:00.00 grep 88259 > >> > > > > I don't know for sure, but I'm guessing that jmap requires a > > serviceability agent, which there isn't an implementation of for > > FreeBSD yet. We basically just either skip building or stub out > > all the code for that. > > > > -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org