From owner-freebsd-java@FreeBSD.ORG Sun Mar 2 20:00:32 2008 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 87E2F1065673 for ; Sun, 2 Mar 2008 20:00:32 +0000 (UTC) (envelope-from anders@FreeBSD.org) Received: from fupp.net (totem.fix.no [80.91.36.20]) by mx1.freebsd.org (Postfix) with ESMTP id 3234C8FC1B for ; Sun, 2 Mar 2008 20:00:31 +0000 (UTC) (envelope-from anders@FreeBSD.org) Received: from localhost (totem.fix.no [80.91.36.20]) by fupp.net (Postfix) with ESMTP id 5DD598DAA4E; Sun, 2 Mar 2008 21:00:30 +0100 (CET) Received: from fupp.net ([80.91.36.20]) by localhost (totem.fix.no [80.91.36.20]) (amavisd-new, port 10024) with LMTP id 7hg7EtZeT9Rg; Sun, 2 Mar 2008 21:00:30 +0100 (CET) Received: by fupp.net (Postfix, from userid 1000) id 0FC1E8DAA4D; Sun, 2 Mar 2008 21:00:30 +0100 (CET) Date: Sun, 2 Mar 2008 21:00:30 +0100 From: Anders Nordby To: Ronald Klop Message-ID: <20080302200029.GA23384@fupp.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Key: http://anders.fix.no/pgp/ X-PGP-Key-FingerPrint: 1E0F C53C D8DF 6A8F EAAD 19C5 D12A BC9F 0083 5956 User-Agent: Mutt/1.5.11 Cc: freebsd-java@freebsd.org Subject: Re: jstack 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: Sun, 02 Mar 2008 20:00:32 -0000 Hi! This is an old email, but I figured I would answer and give my comments anyway. I agree very much that tools like jmap/jstack would be very handy when debugging Java programs. I hope the Java porters one day would fix it. :-) In the mean time, I just discovered that you can get a thread dump by sending SIGQUIT (kill -3 ) to a running Java process. This output can be analyzed by IBMs jva, http://www.alphaworks.ibm.com/tech/jca. At least I was told it should work on analyzing data from Sun based JDKs also. Let me know if this was useful to anyone. Thanks and regards, Anders. On Fri, Jun 08, 2007 at 03:48:26PM +0200, Ronald Klop wrote: > I hard would it be to make jstack usable on FreeBSD? It is a very nice > debug tool. Does it involve a lot of native C code or is it mainly Java > code? > > Ronald. > > -- > Ronald Klop > Amsterdam, The Netherlands > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" -- Anders.