From owner-freebsd-java@FreeBSD.ORG Thu Apr 27 10:44:42 2006 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 D893E16A402 for ; Thu, 27 Apr 2006 10:44:42 +0000 (UTC) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (ns1.ecoms.com [207.44.130.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BEF043D45 for ; Thu, 27 Apr 2006 10:44:40 +0000 (GMT) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (localhost.roq.com [127.0.0.1]) by p4.roq.com (Postfix) with ESMTP id 54BD04D20A; Thu, 27 Apr 2006 10:45:58 +0000 (GMT) Received: from [192.168.46.102] (ppp166-27.static.internode.on.net [150.101.166.27]) by p4.roq.com (Postfix) with ESMTP id 77ADB4D208; Thu, 27 Apr 2006 10:45:57 +0000 (GMT) Message-ID: <4450A095.9010408@thebeastie.org> Date: Thu, 27 Apr 2006 20:44:37 +1000 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.12) Gecko/20060404 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Conrad J. Sabatier" References: <20060423083111.00e49100@localhost> In-Reply-To: <20060423083111.00e49100@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-java@FreeBSD.org Subject: Re: (amd64 7.0-CURRENT) jdk-1.5.0 java crashes when using libthr 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, 27 Apr 2006 10:44:42 -0000 Conrad J. Sabatier wrote: >Has anyone had any success getting the Sun JDK 1.5.0 to work with >libthr (mapped via /etc/libmap.conf)? I've been wanting to try a few of >the more esoteric command line options (-XX:+UseBoundThreads and >-XX:+UseThreadPriorities) in combination with libthr, to try to get a >1:1 thread mapping, but the jvm invariably crashes soon after startup. > >I may be barking up the wrong tree altogether, as Sun's docs say these >two options are for Solaris only, but anyway... > >Any feedback would be greatly appreciated. Thanks. > > > On amd64 Java 1.5 dies quickly on libthr, it also dies quite quickly on i386 as well, but since the diablo Java which is 1.5 with the latest Java patches came out you can use the "-XX:+UseMembar" option which appears to (at least on multi CPU machines) make the Java almost impossible to kill. When I realized that AMD64 1.5 Java being stable will be a fair while away I decided to install a i386 FreeBSD with a PAE kernel to make use of the 6gigs of ram. After bringing the server to a load close to 1,000 and the 1.5 Java with around 5,000 threads over a few day period I decided to believe that libthr isn't at fault and that it can just better reveal problems of programs over the other thread libraries. Mike