diablo-jdk and jmap etc tools

Palle Girgensohn girgen at FreeBSD.org
Fri Nov 9 05:34:01 PST 2007

--On måndag, maj 07, 2007 09.07.09 -0700 Greg Lewis 
<glewis at eyesbeyond.com> 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-
> 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 
PermGenSpace problems. Can we run it with diablo?


More information about the freebsd-java mailing list