From owner-freebsd-java@FreeBSD.ORG Fri Oct 7 08:40:09 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 0EDE316A41F for ; Fri, 7 Oct 2005 08:40:09 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id C513243D48 for ; Fri, 7 Oct 2005 08:40:06 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id j978e59V097259; Fri, 7 Oct 2005 11:40:05 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.158] (pc158.ebs.gr [10.1.1.158]) by ebs.gr (8.13.3/8.12.11) with ESMTP id j978eFYi043139; Fri, 7 Oct 2005 11:40:16 +0300 (EEST) (envelope-from past@ebs.gr) Message-ID: <43463457.6080302@ebs.gr> Date: Fri, 07 Oct 2005 11:39:51 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050830) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nick Johnson References: <6.2.3.4.0.20051006225641.0abea1d0@193.189.169.9> <20051006142719.M44305@turing.morons.org> In-Reply-To: <20051006142719.M44305@turing.morons.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Tomaz Borstnar , freebsd-java@freebsd.org Subject: Re: jdk15 and SMP: are libmap.conf hacks needed on FreeBSD 5.4 and higher (both i386 and amd64)? 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: Fri, 07 Oct 2005 08:40:09 -0000 Nick Johnson wrote: > > On Thu, 6 Oct 2005, Tomaz Borstnar wrote: > >> Hello! >> >> Did not find anything recent enough in archives so I decided to >> ask here. So here it goes... I want to utilize SMP on FreeBSD 5.4 >> (both i386 and amd64) as much as possible with jdk1.5. So I was >> wondering whether I still need to mess with libmap.conf to map >> threading libs to kse or not? It appears that I do not need to do that >> since my limited testing showed that machine was easily overloaded by >> severely hammering JBoss/jdk15 combination. Also top -H shows many >> java threads in ksesig and similar states. So does that mean I should >> keep the defaults and be happy with them? > > > In my experience, the Java port simply does not work reliably with > libkse at all. I've opened a number of bug reports on libekse for > things which are trivial to reproduce and really quite obvious problems, > but nobody's touched them that I know of. It appears that at least some > of these problems are caused by bugs in signal handling and forking. > > See for example: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=threads/84778 > http://www.freebsd.org/cgi/query-pr.cgi?pr=threads/85112 > > The only way I've been able to get stable behaviour from the FreeBSD JVM > is to map to libc_r, which of course isn't going to take advantage of > SMP at all. This is what I have in libmap.conf: > > [/usr/local/jdk1.4.2/] > libpthread.so.1 libc_r.so.5 > libpthread.so libc_r.so > > I've gone so far as to offer to give money to the FreeBSD Foundtain to > pay for someone to look at these problems, but got no response. It wasn't obvious from the PRs, so I wanted to ask: did you actually remove the compiler optimizations and rebuild the system+jdk without them? They are a usual suspect for such heisenbugs. If it is of any comfort, I have been using jdk14 on RELENG_5 and RELENG_6 on various systems (albeit not very highly loaded) without any issues for many months. I never even had any problems from jdk15 for about a month now, unlike some of my colleagues who are using 1.5 on Linux. I also use PostgreSQL all the time and have never encountered the issue on the second PR (although the app runs on JBoss, not Resin). Cheers, Panagiotis