From owner-freebsd-java@FreeBSD.ORG Sat Dec 31 15:32:31 2005 Return-Path: X-Original-To: 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 D799F16A41F for ; Sat, 31 Dec 2005 15:32:31 +0000 (GMT) (envelope-from hwh@gddsn.org.cn) Received: from gddsn.org.cn (gddsn.org.cn [218.19.164.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D3A943D5C for ; Sat, 31 Dec 2005 15:32:31 +0000 (GMT) (envelope-from hwh@gddsn.org.cn) Received: from [192.168.1.5] (unknown [218.19.82.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gddsn.org.cn (Postfix) with ESMTP id C8FC738CB41; Sat, 31 Dec 2005 23:32:28 +0800 (CST) Message-ID: <43B6A48A.8080400@gddsn.org.cn> Date: Sat, 31 Dec 2005 23:32:26 +0800 From: Huang wen hui User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051212) X-Accept-Language: zh-cn,zh MIME-Version: 1.0 To: Michael Vince References: <43B5FB4B.5090605@gddsn.org.cn> <43B61A3C.7010602@roq.com> In-Reply-To: <43B61A3C.7010602@roq.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Cc: java Subject: Re: JDK1.5.0-p2/amd64 offen crash 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: Sat, 31 Dec 2005 15:32:32 -0000 Michael Vince wrote: > Yes I have been able to crash it very easily with my own Java servlets > as well. use libpthread in this case ? > > Firstly I recommend you do not use the libthr threading library for > Java, especially on AMD64/EMT64 setups as it does indeed appear to be > quite unstable. > After some extensive benchmarking on my stuff I have decided libthr is > not good with Java unlike using it for MySQL or Apache. You are right, revert back to libpthread, jdk1.5.0-p2 is more stable. I did not get crash on 3 servers in 8 hours. I do not recognize java+libthr is bad idea in amd64. Thank you! --hwh > > With libthr it might help to increase your thread limits, I have this > in sysctl.conf > kern.threads.max_threads_per_proc=40000 > kern.threads.max_groups_per_proc=40000 > > If you want to try alternative threading setups I recommend trying > this one. > [/usr/local/jdk1.5.0/] > libc_r.so.6 libpthread.so.2 # Everything now uses > 'libpthread' > libc_r.so libpthread.so # > > Mike >