From owner-freebsd-eclipse@FreeBSD.ORG Fri Jan 27 20:02:48 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 4514016A420 for ; Fri, 27 Jan 2006 20:02:48 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: from relay3.av-mx.com (relay3.av-mx.com [137.118.16.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id B483443D49 for ; Fri, 27 Jan 2006 20:02:47 +0000 (GMT) (envelope-from micahjon@ywave.com) X-Virus-Scan-Time: 0 Received: from [137.118.16.60] (HELO mx2.av-mx.com) by relay3.av-mx.com (CommuniGate Pro SMTP 4.2.10) with SMTP id 159165530 for freebsd-eclipse@freebsd.org; Fri, 27 Jan 2006 15:02:46 -0500 Received: (qmail 8500 invoked from network); 27 Jan 2006 20:02:46 -0000 Received: from dsl28197.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.115.197) by 0 with SMTP; 27 Jan 2006 20:02:46 -0000 X-CLIENT-IP: 216.227.115.197 X-CLIENT-HOST: dsl28197.ywave.com Message-ID: <43DA7C64.4030008@ywave.com> Date: Fri, 27 Jan 2006 12:02:44 -0800 From: Micah User-Agent: Thunderbird 1.5 (X11/20060113) MIME-Version: 1.0 To: Panagiotis Astithas References: <43B181F4.6060400@ywave.com> <43D9A726.9090902@ywave.com> <43D9F032.7000908@ebs.gr> In-Reply-To: <43D9F032.7000908@ebs.gr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 27 Jan 2006 20:02:48 -0000 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. Thanks again! Micah