From owner-freebsd-java@FreeBSD.ORG Fri Nov 9 13:34:01 2007 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 57C1E16A41A for ; Fri, 9 Nov 2007 13:34:01 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from banan.pingpong.net (banan.pingpong.net [213.136.40.205]) by mx1.freebsd.org (Postfix) with ESMTP id 01C4E13C4C1 for ; Fri, 9 Nov 2007 13:34:00 +0000 (UTC) (envelope-from girgen@FreeBSD.org) Received: from rambutan.pingpong.net (rambutan.pingpong.net [192.168.1.187]) by banan.pingpong.net (Postfix) with ESMTP id DB7331CC84; Fri, 9 Nov 2007 14:17:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by rambutan.pingpong.net (8.14.1/8.14.1) with ESMTP id lA9DHoav007410; Fri, 9 Nov 2007 14:17:51 +0100 (CET) (envelope-from girgen@FreeBSD.org) Date: Fri, 09 Nov 2007 14:17:50 +0100 From: Palle Girgensohn To: Greg Lewis , Dominic Bishop Message-ID: In-Reply-To: <20070507160709.GC36747@misty.eyesbeyond.com> References: <20070430023320.5342813C457@mx1.freebsd.org> <20070507160709.GC36747@misty.eyesbeyond.com> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: freebsd-java@FreeBSD.org Subject: Re: diablo-jdk and jmap etc tools 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: Fri, 09 Nov 2007 13:34:01 -0000 --On m=E5ndag, maj 07, 2007 09.07.09 -0700 Greg Lewis=20 wrote: > On Mon, Apr 30, 2007 at 03:06:48AM +0100, Dominic Bishop wrote: >> I'm currently trying to analyse memory usage etc in some java >> applications running on FreeBSD and whilst googling came across mention >> of tools such as jmap, jstack and so on in the JDK distribution. >> I cannot however get any of these to work, I set my JAVA_HOME >> environment to the jdk dir but still get the following error with all of >> them (or equivalent error anyway): >> >> %jmap >> Exception in thread "main" java.lang.NoClassDefFoundError: >> sun/jvm/hotspot/tools/Jmap >> >> Have I forgotten to do something or is it just the case that these tools >> are non-functional on FreeBSD. I did briefly browse the JDK jars on the >> machine and couldn't actually find the class it is looking for, or the >> equivalent ones for other tools like jstack, jsadebug etc which fail >> with similar messages. >> >> System is: >> FreeBSD 6.2-RELEASE-p3 i386 >> diablo-jdk-1.5.0.07.01_3 > > Looks like the appropriate classes aren't being compiled in. That might > be fixable by simply finding where they get compiled and enabling it, but > its more likely that there is a native piece associated with those tools > which hasn't been ported. You'd need to dig into the code to find out = for > sure. This is an old discussion; any news? I badly need jmap to trace=20 PermGenSpace problems. Can we run it with diablo? /Palle