From owner-freebsd-eclipse@FreeBSD.ORG Sat Jan 28 19:39:15 2006 Return-Path: X-Original-To: freebsd-eclipse@freebsd.org Delivered-To: freebsd-eclipse@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E57C16A424 for ; Sat, 28 Jan 2006 19:39:15 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from mail.mcneil.com (mcneil.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71D1C43D49 for ; Sat, 28 Jan 2006 19:39:14 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id 2897AF2609; Sat, 28 Jan 2006 11:39:14 -0800 (PST) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (triton.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 48888-06; Sat, 28 Jan 2006 11:39:13 -0800 (PST) Received: from mcneil.com (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id 97B34F18F5; Sat, 28 Jan 2006 11:39:12 -0800 (PST) From: Sean McNeil To: Micah In-Reply-To: <43DA7C64.4030008@ywave.com> References: <43B181F4.6060400@ywave.com> <43D9A726.9090902@ywave.com> <43D9F032.7000908@ebs.gr> <43DA7C64.4030008@ywave.com> Content-Type: text/plain Date: Sat, 28 Jan 2006 11:39:12 -0800 Message-Id: <1138477152.86610.4.camel@triton.mcneil.com> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mcneil.com Cc: freebsd-eclipse@freebsd.org Subject: Re: Help with diagnosing eclipse freezes X-BeenThere: freebsd-eclipse@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD users of eclipse EDI, tools, rich client apps & ports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2006 19:39:15 -0000 On Fri, 2006-01-27 at 12:02 -0800, Micah wrote: > Panagiotis Astithas wrote: > > Micah wrote: > >> I just tried building Eclipse with java 1.5 and the patch Michael > >> Kastner mentioned earlier this week. /same/ problem. Since only > >> Eclipse does this and it's been there across multiple versions of > >> FreeBSD and JVMs, then it's either Eclipse or a really strange > >> hardware problem that only affects Eclipse and not the hundreds of > >> other ports I have installed. Could someone point me somewhere that > >> has some reading on profiling or attaching a debugger to trap these > >> freezes? > > > > Try attaching to the eclipse process with a debugger when it freezes: > > > > % pgrep -lf java > > 7186 /usr/local/jdk1.5.0/bin/java -Xms40m -Xmx256m -jar > > /usr/local/eclipse/startup.jar -os freebsd -ws gtk -arch x86 -launcher > > /usr/local/eclipse/eclipse -name Eclipse -showsplash 600 -exitdata 2001b > > -vm /usr/local/bin/java -vmargs -Xms40m -Xmx256m -jar > > /usr/local/eclipse/startup.jar > > % gdb /usr/local/jdk1.5.0/bin/java 7186 > > > > > > And from there on snoop around and see if you can find anything useful. > > You could do the same thing with ktrace(1): > > > > % ktrace -p 7186 > > > > then use kdump(1) to view the processes activity. > > In order to monitor the initial 3.5 min. delay, you coul start eclipse > > from either ktrace or gdb and see if something weird goes on before > > forking the java process. > > > > If you haven't tried yet with other thread implementations, do so. Use > > libmap.conf(5) to specify either libc_r or libthr and see if it makes > > any difference. Also make sure you are not having any DNS or > > network-related problems (any non-default sysctl settings?). And for the > > truly paranoid, make sure powerd is not changing the clock frequency for > > some reason and if you are using ataidle or some such it is not spinning > > down the disks at that time. Not that I think it is likely to happen, > > but since we are grasping for straws... > > > > Cheers, > > > > Panagiotis > > > > Thank you! Especially for the quick pointers on tools to use. I did a > ktrace on eclipse and there were numerous lines similar to this > surrounded by file system related calls: > 54039 eclipse NAMI > "/usr/home/bsdmjl/.themes/RPanther3/gtk-2.0/button_round_blue.png" > > I tried disabling my GTK theme and suddenly Eclipse worked. It boots up > in seconds and doesn't freeze when typing. I guess I have to find a new > gtk theme that matches KDE's Baghira. (Or just ignore the eye candy :) > > I wonder if there's a bug in how Eclipse/Java handles GTK themes, or if > there's a problem with the RPanther theme itself? At least now I can > work around the problem. The bug is related to libzip and has been discussed many times on this and the java mailing list. I'm guessing you are using jdk 1.4 as this has been fixed for jdk 1.5. Cheers, Sean