From owner-freebsd-java@FreeBSD.ORG Wed Mar 16 16:32:37 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 CBFEE16A4CE for ; Wed, 16 Mar 2005 16:32:37 +0000 (GMT) Received: from misty.eyesbeyond.com (glewis.dsl.xmission.com [166.70.56.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FC2643D1F for ; Wed, 16 Mar 2005 16:32:36 +0000 (GMT) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.3/8.13.3) with ESMTP id j2GGWYdk058679; Wed, 16 Mar 2005 09:32:35 -0700 (MST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.3/8.13.3/Submit) id j2GGWSPv058678; Wed, 16 Mar 2005 09:32:28 -0700 (MST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Wed, 16 Mar 2005 09:32:28 -0700 From: Greg Lewis To: Nicolas Gieczewski Message-ID: <20050316163228.GA58595@misty.eyesbeyond.com> References: <00e201c52907$41af13f0$0200a8c0@ash> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00e201c52907$41af13f0$0200a8c0@ash> User-Agent: Mutt/1.4.2.1i cc: java@FreeBSD.org 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: Wed, 16 Mar 2005 16:32:37 -0000 On Mon, Mar 14, 2005 at 11:32:31PM -0300, Nicolas Gieczewski wrote: > A couple of days ago I moved a very thread-intensive Java application from a server running Linux to a server running FreeBSD 5.3-RELEASE and jdk-1.4.2p7. The server has an Athlon XP 2600+ processor and 512 MB of memory. > > The application services around 700 concurrent clients during peak hours and creates at least one thread for each connection, with many connections requiring 2+ threads. The total number of threads during peak hours is usually between 1600 and 2200. > > The problem: During peak hours, the JVM dies several times an hour with no indication of why. Nothing is written to stdout or stderr, there's no log file, no core dump, and nothing in /var/log/messages. > > Late at night, when the number of concurrent users drops to 300-400, there are no crashes and the JVM runs stable for several hours until the next day. > > FWIW, I tried linux-sun-jdk-1.4.2.07_1 but the results were even worse: The JVM would crash extremely often (I don't think it ever lasted longer than 5 minutes), but at least it did write an error log file and a core dump. The error log file always began with: > > > An unexpected exception has been detected in native code outside the VM. > > Unexpected Signal : 11 occurred at PC=0x81B9EE8 > > Function=[Unknown.] > > Library=(N/A) > > The backtrace shown in the "Current Java thread" section of the error log file was different every time, but it usually pointed to parts of my code that either created a new thread or interrupted an existing thread. > > This problem does not occur when the application is run on Linux. > > Any clues? Its very difficult to have any clues since there isn't much information to be had :(. Try updating to 5.3-STABLE as another poster has suggested. If the problem persists, try using java_g instaead of java and maybe run that under gdb and see if you can get a trace. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org