From owner-freebsd-java@FreeBSD.ORG Wed Feb 19 20:02:04 2014 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A6C5A9D4 for ; Wed, 19 Feb 2014 20:02:04 +0000 (UTC) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 78A421DDB for ; Wed, 19 Feb 2014 20:02:04 +0000 (UTC) Received: from mouf.net (swills@mouf [199.48.129.64]) by mouf.net (8.14.5/8.14.5) with ESMTP id s1JK1sJx055570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 19 Feb 2014 20:01:59 GMT (envelope-from swills@mouf.net) Received: (from swills@localhost) by mouf.net (8.14.5/8.14.5/Submit) id s1JK1scj055569; Wed, 19 Feb 2014 20:01:54 GMT (envelope-from swills) Date: Wed, 19 Feb 2014 20:01:54 +0000 From: Steve Wills To: Joe Marcus Clarke Subject: Re: VisualVM 1.3.7 starts then quits Message-ID: <20140219200153.GB52070@mouf.net> References: <5304F7E5.8030802@marcuscom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5304F7E5.8030802@marcuscom.com> User-Agent: Mutt/1.5.22 (2013-10-16) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mouf.net [199.48.129.64]); Wed, 19 Feb 2014 20:01:59 +0000 (UTC) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.98.1 at mouf.net X-Virus-Status: Clean Cc: freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 20:02:04 -0000 On Wed, Feb 19, 2014 at 01:28:53PM -0500, Joe Marcus Clarke wrote: > Hey Steve et al. I am trying to use VisualVM with OpenJDK 7 on FreeBSD > 9.2-p3 to debug a problem with Tomcat. I have installed VVM both from > pkgs and ports, and the behavior I see is that it launches, runs for 10 > seconds with full GUI that is functional. But regardless of what I do > within the app (or even if I do nothing), the window disappears after 10 > seconds, and the app dies with exit code 2. > > The log shows nothing fatal. The last message is: > > WARNING [org.netbeans.modules.profiler.NetBeansProfiler]: Failed to > initialize the Profiler engine: Problem with a required JFluid > installation directory or file > /usr/local/share/visualvm/profiler/lib/deployed/jdk16/solaris > > But the app runs a bit after that message is printed. I see from others > that this DOES work on FreeBSD, so I'm wondering if there is a new > issue, or if there's something I may need to do. My stats are: > > ------------------------------------------------------------------------------- > >Log Session: Wednesday, February 19, 2014 1:17:16 PM EST > >System Info: > Product Version = VisualVM 1.3.7 > Operating System = FreeBSD version 9.2-RELEASE-p3 running on amd64 > Java; VM; Vendor = 1.7.0_51; OpenJDK 64-Bit Server VM > 24.51-b03; Oracle Corporation > Runtime = OpenJDK Runtime Environment 1.7.0_51-b13 > Java Home = /usr/local/openjdk7/jre > System Locale; Encoding = en (visualvm); US-ASCII > Home Directory = /root > Current Directory = /usr/home/marcus > User Directory = /home/marcus/.visualvm/1.3.7 > Cache Directory = /home/marcus/.cache/visualvm/1.3.7 > Installation = /usr/local/share/visualvm/visualvm > /usr/local/share/visualvm/profiler > /usr/local/share/visualvm/platform > > Any advice would be very helpful. Thanks. Hmm, this is strange. One thing I notice is that it's trying to load things from JDK6 (and for solaris at that). Have you tried running it under JDK6? Personally, I build with a local patch that makes JDK7 the default (normally JDK6 is default). So maybe it's as simple as making sure the right JDK is used? Googled around a bit about this and found: https://netbeans.org/bugzilla/show_bug.cgi?id=155892 http://lists.freebsd.org/pipermail/freebsd-java/2008-July/thread.html http://playground.teerapap.net/2011/08/visualvm-on-ubuntulucid-failed-to.html https://bugs.launchpad.net/ubuntu/+source/visualvm/+bug/577958 So you're definitely not the only one to encounter this type of issue, although none of those seem to indicate a resolution. The last two in particular make me wonder if building from source would help. The VisualVM port isn't building VisualVM from source, it's just repackaging the zip file from visualvm.java.net. We could build from source if needed. Source is here: https://java.net/projects/visualvm/sources/svn/show The only copy of the libprofilerinterface.so file I can find is in the netbeans package, but only versions for Solaris, Mac, etc. None for FreeBSD. Perhaps we would get it if we built VisualVM from source. Steve