From owner-freebsd-java@FreeBSD.ORG Sun Apr 17 19:06:25 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 4D93F16A4ED for ; Sun, 17 Apr 2005 19:06:25 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id D966243D39 for ; Sun, 17 Apr 2005 19:06:24 +0000 (GMT) (envelope-from toby.murray@gmail.com) Received: by zproxy.gmail.com with SMTP id 13so1196405nzn for ; Sun, 17 Apr 2005 12:06:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=kSSLA22FLstwoJXoNQ4ffYyUWe5xbfM7gfmYR/dGBUeygfZ+6G374DD2ORnbVhQNtwlwnYd3Ieyk/Scaf4UYmP7GHIc/UCfFmtnVcPyUunHnKOBeyJ/JCBFIL5lOU+ykC9dpopy0KX10COqFGeQh/JLmEmvlbumad4C1I/lN9UI= Received: by 10.36.9.5 with SMTP id 5mr311870nzi; Sun, 17 Apr 2005 12:06:24 -0700 (PDT) Received: by 10.36.18.6 with HTTP; Sun, 17 Apr 2005 12:06:24 -0700 (PDT) Message-ID: <324cec6d05041712065a3ff926@mail.gmail.com> Date: Sun, 17 Apr 2005 14:06:24 -0500 From: Toby Murray To: freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: java crashing when load average is high X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Toby Murray List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Apr 2005 19:06:25 -0000 Hi, I am working on getting a new server online. It is a Dell Poweredge with dual HT Xeons and 1GB of RAM. We are running FreeBSD 5.4-RC1 and java 1.4.2_08. java version "1.4.2_08" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03) Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode) I have a java program that reads XML files over an HTTP stream and inserts data from them into a mysql database. After getting java up and running everything appeared to be working normally at first and the program ran fine. But then I tried running it while something else was compiling and the load average was up around 5 or 6.=20 Suddenly the behavior of the JVM became extremely erratic. Sometimes the whole JVM dumps with a signal 11 and leaves the following in = dmsg: kernel trap 12 with interrupts disabled Other times the program throws random exceptions. I have seen 5 or 6 different exceptions being thrown at seemingly random places in the code while parsing the same data. A third behavior is for java to go into what appears to be an infinite loop somewhere. Usually when my program runs, there is one java thread and one mysql process that each take up ~70% of one CPU. When things start looping, 2 java processes start sucking up as much CPU as they can and mysql drops to nothing. This continues until I pull out the kill -9. So to summarize it all: java works fine if it is the only thing running If the box is already under load, java malfunctions in one of 3 ways: Signal 11, random Exception thrown or it starts looping without getting anything done. Any clues? I see several other threads on the list about signal 11 problems but I didn't see anything about the problems being related to load. Let me know if you need more info on something. Thanks, Toby