From owner-freebsd-java@FreeBSD.ORG Thu Dec 29 13:57:28 2005 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE81516A422 for ; Thu, 29 Dec 2005 13:57:28 +0000 (GMT) (envelope-from fborghesi@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F14943D7C for ; Thu, 29 Dec 2005 13:57:10 +0000 (GMT) (envelope-from fborghesi@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1764188nzo for ; Thu, 29 Dec 2005 05:57:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=UuMy985mIRSAh+6Wqlvz38rSA94fzAi9+wIa7071Lvc7y/LbF6s37dEZk5cVkaHv8ls8W84e1QeBz0rJs6+ks8F+I4681+A9W2EPvADZEaHIfI1ikuF+O9yRM509q+bw9tBTm7i52NSMEPcoEjoEVnUK8XeKCWRrMHe5QzUax9Q= Received: by 10.65.132.5 with SMTP id j5mr1430312qbn; Thu, 29 Dec 2005 05:57:09 -0800 (PST) Received: by 10.64.220.20 with HTTP; Thu, 29 Dec 2005 05:57:09 -0800 (PST) Message-ID: Date: Thu, 29 Dec 2005 10:57:09 -0300 From: Franco Bruno Borghesi To: FreeBSD-Java In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Still doesn't work 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: Thu, 29 Dec 2005 13:57:28 -0000 2005/12/23, Franco Bruno Borghesi : > > Hi again. I'm still having problems with eclipse + jdk15 on amd64. Eclips= e > crashes continuously and the only thing that seems to make it work (at le= ast > for a couple of hours) is erasing the .metadata directory (and loosing al= l > the configuration settings). > > Panagiotis said it was a gc problem, and suggested me to look herefor a switch that makes j= ava > work.I tried different switches, some from that page and some I found > googling (not many), but nothing seems to work. > > The fact that only Panagiotis answered my questions makes me think that > none of you have experienced this kind of problem, although Panagiotis sa= id > it was a common problem (is it?). > > So, my question is: has anyone experienced this problem? how do you deal > with it? have you found any switch to make java work? > I'm thinking maybe I shoud go back and use freebsd 32 on my amd64... is > this what you people do? > > Thanks... and merry Christmas to all of you :-) > Googling around I've found this jdk bug 5060628( http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=3D5060628). I don't know if the problem they describe there is the same problem that Panagiotis was talking about, and I also ignore if it is actually my problem, but I decided to give a try to the proposed fixes. Running eclipse with "-vmargs -Djava.compiler=3D" seems to solve the problem.Eclipse runs slower but stable, no hangs at all (at least for the last couple of days). The other proposed solution was to create a file called ".hotspot_compiler" with the following contents: exclude org/eclipse/jdt/internal/compiler/parser/Scanner optimizedCurrentTokenSource3 exclude org/eclipse/jdt/internal/core/util/CommentRecorderScanner recordComment This is said to be a better solution, but it didn't work for me. It's not clear to me where I should create the file, so I tryed with /usr/local/eclipse/.hotspot_compiler, ~/.hotspot_compiler and ~/.eclipse/.hotspot_compiler. Hope this helps anyone with the same problem. Cheers.