From owner-freebsd-java@FreeBSD.ORG Mon Mar 21 21:34:15 2005 Return-Path: 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 2CDA916A4CE for ; Mon, 21 Mar 2005 21:34:15 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA66143D2D for ; Mon, 21 Mar 2005 21:34:14 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from [66.92.151.195] (july.chuckr.org [66.92.151.195]) by april.chuckr.org (Postfix) with ESMTP id 1F68B11FD7; Mon, 21 Mar 2005 16:34:01 -0500 (EST) Message-ID: <423F3DBC.30008@chuckr.org> Date: Mon, 21 Mar 2005 21:33:48 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chuck Robey References: <00e201c52907$41af13f0$0200a8c0@ash> <20050316163228.GA58595@misty.eyesbeyond.com> <04bb01c52b0d$0ab3ec60$0200a8c0@ash> <423EBD98.2010907@fer.hr> <013e01c52e40$29ecb310$0200a8c0@ash> <423F0D94.6090703@chuckr.org> <423F396F.2090103@chuckr.org> In-Reply-To: <423F396F.2090103@chuckr.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Nicolas Gieczewski cc: java@freebsd.org cc: Ivan Voras Subject: Re: jdk-1.4.2p7 crashes with no indication of why X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 21:34:15 -0000 Chuck Robey wrote: > Chuck Robey wrote: > >> Nicolas Gieczewski wrote: >> >>>>> -Xmx256m: Fine on Linux, random silent crashes on FreeBSD. >>>>> -Xmx128m: java.lang.OutOfMemoryError exceptions on both OSs. >>>>> >>>>> Does this help at all? By now I'm pretty much sure that the crashes >>>>> I'm >>>>> experiencing are memory-management-related; otherwise they shouldn't >>>>> go away when changing the value of -Xmx. >>>> >>>> >>>> >>>> Can you check what the 'top' and similar utilities report on the >>>> memory usage of JVM close to the time of crashes, with 256M memory? >>>> Also, are there more then one JVM running? >>>> >>>> (I'm asking this because there could be a resource limit you're >>>> hitting, e.g. for maximum memory allowed to a process, or something >>>> like it.) >>> >>> >>> >>> >>> The highest I've seen with top is SIZE/RES = 563M/234M, but that's >>> not necessarily when it crashes. I've seen it crash at 559M/176M, for >>> example, so it doesn't look like I'm hitting any specific limits. >>> >> >> Two items I am currently investigating: >> >> First, the port complains that it couldn't find /bin/zip. No wonder, >> as it's /usr/local/bin/zip. The quickest fix I wanted to try was a >> softlink, so I did that, if it needs it, the *right* fix could come >> later. >> >> Second, I cd'ed into work/control/make (might be there was an extra >> component in there, I forget) and found out about >> WITH_LINUX_BOOTSTRAP, which I had not seen before. I am using the Sun >> Linux jdk14 as a bootstrap, so this seems lke a likely thing, I set >> it, and then restarted my build. I don't figure to get any good info >> from this for some hours, > > > Followup: I had teh build break, the libXm.a gave a linking error, so I > immediately rebuilt it, then went and restarted teh jdk15 build. The > build just finished; I have hopes! I just tried an application, and (after adding /usr/local/jdk1.5.0/bin to my PATH) got an error about not being able to find libjava.so. I checked, that file does exist in /usr/local/jdk1.5.0/jre/lib/amd64, so the jdk15 seems to be not totally installed, or I'm missing something in myh environment. Anyone know what that is?